mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 11:35:21 +03:00
add test
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
//build-pass
|
||||
|
||||
pub enum Register<const N: u16> {
|
||||
Field0 = 40,
|
||||
Field1,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let _b = Register::<0>::Field1 as u16;
|
||||
}
|
||||
Reference in New Issue
Block a user