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
218 B
Rust
Raw Normal View History

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