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 9220558 commit 51c6874Copy full SHA for 51c6874
src/test/ui/const-generics/issues/issue-65675.rs
@@ -0,0 +1,10 @@
1
+// run-pass
2
+// compile-flags: -Z chalk
3
+
4
+#![feature(const_generics)]
5
+//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
6
7
+pub struct Foo<T, const N: usize>([T; N]);
8
+impl<T, const N: usize> Foo<T, {N}> {}
9
10
+fn main() {}
src/test/ui/const-generics/issues/issue-65675.stderr
@@ -0,0 +1,8 @@
+warning: the feature `const_generics` is incomplete and may cause the compiler to crash
+ --> $DIR/issue-65675.rs:4:12
+ |
+LL | #![feature(const_generics)]
+ | ^^^^^^^^^^^^^^
+ = note: `#[warn(incomplete_features)]` on by default
0 commit comments