]> git.proxmox.com Git - rustc.git/blob - src/test/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / or-patterns / issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs
1 #![feature(or_patterns)]
2
3 fn main() {
4 let 0 | (1 | 2) = 0; //~ ERROR refutable pattern in local binding
5 match 0 {
6 //~^ ERROR non-exhaustive patterns
7 0 | (1 | 2) => {}
8 }
9 }