rust/src/test/ui/error-codes/E0007.rs
2019-04-22 13:11:53 -07:00

10 lines
199 B
Rust

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