]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/issue-8351-1.rs
Auto merge of #106981 - joboet:std_remove_box_syntax, r=thomcc
[rust.git] / tests / ui / pattern / issue-8351-1.rs
1 // run-pass
2 #![allow(dead_code)]
3
4 enum E {
5     Foo{f: isize},
6     Bar,
7 }
8
9 pub fn main() {
10     let e = E::Foo{f: 0};
11     match e {
12         E::Foo{f: 1} => panic!(),
13         E::Foo{..} => (),
14         _ => panic!(),
15     }
16 }