]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/match-enum-struct-0.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.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 }