rust/src/test/compile-fail/pat-ref-enum.rs
2012-08-06 16:16:08 -07:00

9 lines
156 B
Rust

fn matcher(x: option<int>) {
match x {
ref some(i) => {} //~ ERROR expected identifier, found enum pattern
none => {}
}
}
fn main() {}