about summary refs log tree commit diff
path: root/tests/ui/or-patterns/issue-69875-should-have-been-expanded-earlier.rs
blob: fc6f9abc4ac8502df3ee9c1aaafed112af2c89a5 (plain)
1
2
3
4
5
6
7
//@ check-pass

fn main() {
    let (0 | (1 | _)) = 0;
    if let 0 | (1 | 2) = 0 {}
    if let x @ 0 | x @ (1 | 2) = 0 {}
}