We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a2410a commit e82cd95Copy full SHA for e82cd95
src/test/ui/const-generics/issue-61422.rs
@@ -0,0 +1,15 @@
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
+use std::mem;
7
8
+fn foo<const SIZE: usize>() {
9
+ let arr: [u8; SIZE] = unsafe {
10
+ let mut array: [u8; SIZE] = mem::uninitialized();
11
+ array
12
+ };
13
+}
14
15
+fn main() {}
src/test/ui/const-generics/issue-61422.stderr
@@ -0,0 +1,6 @@
+warning: the feature `const_generics` is incomplete and may cause the compiler to crash
+ --> $DIR/issue-61422.rs:3:12
+ |
+LL | #![feature(const_generics)]
+ | ^^^^^^^^^^^^^^
0 commit comments