rust/tests/ui/pattern/issue-8351-1.rs

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

17 lines
221 B
Rust
Raw Normal View History

// run-pass
#![allow(dead_code)]
2013-10-07 06:35:03 +00:00
enum E {
Foo{f: isize},
2013-10-07 06:35:03 +00:00
Bar,
}
pub fn main() {
let e = E::Foo{f: 0};
2013-10-07 06:35:03 +00:00
match e {
E::Foo{f: 1} => panic!(),
E::Foo{..} => (),
_ => panic!(),
2013-10-07 06:35:03 +00:00
}
}