]> git.lizzy.rs Git - rust.git/blob - src/test/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs
Rollup merge of #91915 - jackh726:issue-91899, r=Mark-Simulacrum
[rust.git] / src / test / ui / or-patterns / issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs
1 fn main() {
2     let (0 | (1 | 2)) = 0; //~ ERROR refutable pattern in local binding
3     match 0 {
4         //~^ ERROR non-exhaustive patterns
5         0 | (1 | 2) => {}
6     }
7 }