]> git.lizzy.rs Git - rust.git/blob - tests/cc_seme.rs
Fix deploy.sh III
[rust.git] / tests / cc_seme.rs
1 #![feature(plugin)]
2 #![plugin(clippy)]
3
4 #[allow(dead_code)]
5 enum Baz {
6     One,
7     Two,
8 }
9
10 struct Test {
11     t: Option<usize>,
12     b: Baz,
13 }
14
15 fn main() {
16     use Baz::*;
17     let x = Test {
18         t: Some(0),
19         b: One,
20     };
21
22     match x {
23         Test { t: Some(_), b: One } => unreachable!(),
24         Test { t: Some(42), b: Two } => unreachable!(),
25         Test { t: None, .. } => unreachable!(),
26         Test { .. } => unreachable!(),
27     }
28 }