summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0007.rs
blob: 022ac5fc113ddbf6a631ed1529ea1b4543a53924 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(bindings_after_at)]

fn main() {
    let x = Some("s".to_string());
    match x {
        op_string @ Some(s) => {},
        //~^ ERROR E0007
        //~| ERROR E0382
        None => {},
    }
}