summaryrefslogtreecommitdiffstats
path: root/tests/ui/auxiliary/issue-24106.rs
blob: 2c6a6034806bdc1a4488a47d518bb87e5aeb1b8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![crate_type="lib"]

enum E { E0 = 0, E1 = 1 }
const E0_U8: u8 = E::E0 as u8;
const E1_U8: u8 = E::E1 as u8;

pub fn go<T>() {
    match 0 {
        E0_U8 => (),
        E1_U8 => (),
        _ => (),
    }
}