We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 389352c commit 4c4fb71Copy full SHA for 4c4fb71
src/test/ui/const-generics/issues/issue-97634.rs
@@ -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