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 d187e81 commit 8faeb0eCopy full SHA for 8faeb0e
src/test/ui/const-generics/issues/issue-74255.rs
@@ -0,0 +1,18 @@
1
+// check-pass
2
+#![feature(const_generics)]
3
+#![allow(dead_code, incomplete_features)]
4
+
5
+#[derive(PartialEq, Eq)]
6
+enum IceEnum {
7
+ Variant
8
+}
9
10
+struct IceStruct;
11
12
+impl IceStruct {
13
+ fn ice_struct_fn<const I: IceEnum>() {}
14
15
16
+fn main() {
17
+ IceStruct::ice_struct_fn::<{IceEnum::Variant}>();
18
0 commit comments