]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/pat-ref-enum.rs
Auto merge of #57035 - Zoxc:query-pref9, r=michaelwoerister
[rust.git] / src / test / ui / parser / pat-ref-enum.rs
1 // compile-flags: -Z parse-only
2
3 fn matcher(x: Option<isize>) {
4     match x {
5       ref Some(i) => {} //~ ERROR expected identifier, found enum pattern
6       None => {}
7     }
8 }
9
10 fn main() {}