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; }