summary refs log tree commit diff
path: root/src/test/compile-fail/pat-ref-enum.rs
blob: 398a95d194c295112f99b0c6dc37e2dce5b0ff5e (plain)
1
2
3
4
5
6
7
8
fn matcher(x: option<int>) {
    match x {
      ref some(i) => {} //~ ERROR expected identifier, found enum pattern
      none => {}
    }
}

fn main() {}