]> git.lizzy.rs Git - rust.git/blob - tests/ui/binding/match-enum-struct-0.rs
Merge commit '1480cea393d0cee195e59949eabdfbcf1230f7f9' into clippyup
[rust.git] / tests / 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 }