]> git.proxmox.com Git - rustc.git/blob - src/test/ui/binding/match-enum-struct-0.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / binding / match-enum-struct-0.rs
1 // run-pass
2 #![allow(dead_code)]
3 // regression test for issue #5625
4
5
6 enum E {
7 Foo{f : isize},
8 Bar
9 }
10
11 pub fn main() {
12 let e = E::Bar;
13 match e {
14 E::Foo{f: _f} => panic!(),
15 _ => (),
16 }
17 }