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 101dd7b commit 7c485ccCopy full SHA for 7c485cc
src/test/ui/const-generics/issues/issue-61747.rs
@@ -0,0 +1,16 @@
1
+// check-pass
2
+
3
+#![feature(const_generics)]
4
+//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
5
6
+struct Const<const N: usize>;
7
8
+impl<const C: usize> Const<{C}> {
9
+ fn successor() -> Const<{C + 1}> {
10
+ Const
11
+ }
12
+}
13
14
+fn main() {
15
+ Const::<1>::successor();
16
src/test/ui/const-generics/issues/issue-61747.stderr
@@ -0,0 +1,8 @@
+warning: the feature `const_generics` is incomplete and may cause the compiler to crash
+ --> $DIR/issue-61747.rs:3:12
+ |
+LL | #![feature(const_generics)]
+ | ^^^^^^^^^^^^^^
+ = note: `#[warn(incomplete_features)]` on by default
0 commit comments