rust/src/test/ui/parser/pat-ref-enum.rs
2018-12-25 21:08:33 -07:00

11 lines
191 B
Rust

// compile-flags: -Z parse-only
fn matcher(x: Option<isize>) {
match x {
ref Some(i) => {} //~ ERROR expected identifier, found enum pattern
None => {}
}
}
fn main() {}