summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0007.rs
blob: cdda735ba443554f05cde8285a295a8d99b59f1b (plain)
1
2
3
4
5
6
7
8
9
10
fn main() {
    let x = Some("s".to_string());
    match x {
        op_string @ Some(s) => {},
        //~^ ERROR E0007
        //~| ERROR E0303
        //~| ERROR E0382
        None => {},
    }
}