summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/guards-parenthesized-and.rs
blob: 3a1c341f3ee5aeae68353bddd9fa8423a50462c3 (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!(),
    }
}