about summary refs log tree commit diff
path: root/src/test/ui/parser/pat-ref-enum.rs
blob: 85bb6bae9cf256e00170968890ce337a515ce8b4 (plain)
1
2
3
4
5
6
7
8
9
10
// compile-flags: -Z parse-only

fn matcher(x: Option<isize>) {
    match x {
      ref Some(i) => {} //~ ERROR expected identifier, found enum pattern
      None => {}
    }
}

fn main() {}