about summary refs log tree commit diff
path: root/tests/ui/match/guards-parenthesized-and.rs
blob: 7e3b930d6e855ad549af751fa3d532acb246f4e5 (plain)
1
2
3
4
5
6
7
8
9
10
//@ check-pass

fn main() {
    let c = 1;
    let w = "T";
    match Some(5) {
        None if c == 1 && (w != "Y" && w != "E") => {}
        _ => panic!(),
    }
}