Files
rust/src/test/ui/const-generics/issues/issue-97634.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
137 B
Rust
Raw Normal View History

2022-06-23 17:34:34 +02:00
//build-pass
pub enum Register<const N: u16> {
Field0 = 40,
Field1,
}
fn main() {
let _b = Register::<0>::Field1 as u16;
}