]> git.proxmox.com Git - rustc.git/blob - tests/ui/pattern/issue-8351-2.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / pattern / issue-8351-2.rs
1 // run-pass
2 #![allow(dead_code)]
3
4 enum E {
5 Foo{f: isize, b: bool},
6 Bar,
7 }
8
9 pub fn main() {
10 let e = E::Foo{f: 0, b: false};
11 match e {
12 E::Foo{f: 1, b: true} => panic!(),
13 E::Foo{b: false, f: 0} => (),
14 _ => panic!(),
15 }
16 }