summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/issues/issue-97634.rs
blob: 422e8de6856457d4cc70a9656abc501e2a218209 (plain)
1
2
3
4
5
6
7
8
9
10
// build-pass

pub enum Register<const N: u16> {
    Field0 = 40,
    Field1,
}

fn main() {
    let _b = Register::<0>::Field1 as u16;
}