]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/fat-arrow-match.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 }