Skip to content

Commit 4c4fb71

Browse files
committed
add test
1 parent 389352c commit 4c4fb71

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//build-pass
2+
3+
pub enum Register<const N: u16> {
4+
Field0 = 40,
5+
Field1,
6+
}
7+
8+
fn main() {
9+
let _b = Register::<0>::Field1 as u16;
10+
}

0 commit comments

Comments
 (0)