summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-3895.rs
blob: c560ca60dd3b09cd12a8fb396b84669f66665be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
#![allow(dead_code)]

pub fn main() {
    enum State { BadChar, BadSyntax }

    match State::BadChar {
        _ if true => State::BadChar,
        State::BadChar | State::BadSyntax => panic!() ,
    };
}