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 15033a9 commit 318a10eCopy full SHA for 318a10e
src/test/ui/const-generics/unused-const-param.rs
@@ -0,0 +1,8 @@
1
+// run-pass
2
+
3
+#![feature(const_generics)]
4
+//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
5
6
+struct A<const N: usize>; // ok
7
8
+fn main() {}
src/test/ui/const-generics/unused-const-param.stderr
@@ -0,0 +1,6 @@
+warning: the feature `const_generics` is incomplete and may cause the compiler to crash
+ --> $DIR/unused-const-param.rs:3:12
+ |
+LL | #![feature(const_generics)]
+ | ^^^^^^^^^^^^^^
0 commit comments