rust/src/test/ui/error-codes/E0303.rs
2018-12-25 21:08:33 -07:00

8 lines
216 B
Rust

fn main() {
match Some("hi".to_string()) {
ref op_string_ref @ Some(s) => {},
//~^ ERROR pattern bindings are not allowed after an `@` [E0303]
//~| ERROR E0009
None => {},
}
}