11 lines
138 B
Rust
11 lines
138 B
Rust
// build-pass
|
|
|
|
pub enum Register<const N: u16> {
|
|
Field0 = 40,
|
|
Field1,
|
|
}
|
|
|
|
fn main() {
|
|
let _b = Register::<0>::Field1 as u16;
|
|
}
|