]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/fat-arrow-match.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[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 }