rust/tests/ui/issues/issue-3895.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
219 B
Rust
Raw Normal View History

//@ run-pass
#![allow(dead_code)]
pub fn main() {
2012-11-01 21:43:26 +00:00
enum State { BadChar, BadSyntax }
match State::BadChar {
_ if true => State::BadChar,
State::BadChar | State::BadSyntax => panic!() ,
2012-11-01 21:43:26 +00:00
};
}