]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/fat-arrow-match.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / binding / fat-arrow-match.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4
5 enum color {
6     red,
7     green,
8     blue
9 }
10
11 pub fn main() {
12     println!("{}", match color::red {
13         color::red => { 1 }
14         color::green => { 2 }
15         color::blue => { 3 }
16     });
17 }