summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/fat-arrow-match.rs
blob: aaf5be8cf748d1978592f14b69c179a9842e770f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]

enum color {
    red,
    green,
    blue
}

pub fn main() {
    println!("{}", match color::red {
        color::red => { 1 }
        color::green => { 2 }
        color::blue => { 3 }
    });
}