mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
17 lines
221 B
Rust
17 lines
221 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
// regression test for issue #5625
|
|
|
|
|
|
enum E {
|
|
Foo{f : isize},
|
|
Bar
|
|
}
|
|
|
|
pub fn main() {
|
|
let e = E::Bar;
|
|
match e {
|
|
E::Foo{f: _f} => panic!(),
|
|
_ => (),
|
|
}
|
|
}
|