summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/pat-ref-enum.rs
blob: 412dd141de0eea542e204b2b6c74fb57e24530ab (plain)
1
2
3
4
5
6
7
8
fn matcher(x: Option<isize>) {
    match x {
      ref Some(i) => {} //~ ERROR expected identifier, found enum pattern
      None => {}
    }
}

fn main() {}