rust/tests/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
138 B
Rust
Raw Normal View History

2022-06-24 09:43:38 -05:00
// build-pass
2022-06-23 10:34:34 -05:00
pub enum Register<const N: u16> {
Field0 = 40,
Field1,
}
fn main() {
let _b = Register::<0>::Field1 as u16;
}