rust/src/test/ui/error-codes/E0007.rs
2019-12-23 14:47:20 +01:00

11 lines
206 B
Rust

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