rust/src/test/run-pass/issue-3895.rs

10 lines
166 B
Rust
Raw Normal View History

2012-11-01 16:43:26 -05:00
// xfail-test
fn main() {
enum State { BadChar, BadSyntax }
match BadChar {
_ if true => BadChar,
BadChar | BadSyntax => fail ,
};
}