We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb66500 commit 96fc989Copy full SHA for 96fc989
src/test/ui/const-generics/issue-61432.rs
@@ -0,0 +1,17 @@
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
+fn promote<const N: i32>() {
7
+ // works:
8
+ //
9
+ // let n = N;
10
+ // &n;
11
12
+ &N;
13
+}
14
15
+fn main() {
16
+ promote::<0>();
17
src/test/ui/const-generics/issue-61432.stderr
@@ -0,0 +1,8 @@
+warning: the feature `const_generics` is incomplete and may cause the compiler to crash
+ --> $DIR/issue-61432.rs:3:12
+ |
+LL | #![feature(const_generics)]
+ | ^^^^^^^^^^^^^^
+ = note: `#[warn(incomplete_features)]` on by default
0 commit comments