]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/issue-8351-1.rs
Rollup merge of #96051 - newpavlov:duration_rounding, r=nagisa,joshtriplett
[rust.git] / src / test / 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 }