summaryrefslogtreecommitdiffstats
path: root/tests/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs
blob: 3538aad5d772f7b1d2b209348e1e82100f96d415 (plain)
1
2
3
4
5
6
7
fn main() {
    let (0 | (1 | 2)) = 0; //~ ERROR refutable pattern in local binding
    match 0 {
        //~^ ERROR non-exhaustive patterns
        0 | (1 | 2) => {}
    }
}