]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/issue-61422.rs
move interface to the unikernel in the crate hermit-abi
[rust.git] / src / test / ui / const-generics / issue-61422.rs
index 68e5a52e0ac5cba18c9873560dbf5a86768df1b0..45d37b6a2f3c5d115214bb5dd00954e94f112ad0 100644 (file)
@@ -1,4 +1,4 @@
-// run-pass
+// check-pass
 
 #![feature(const_generics)]
 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
@@ -8,7 +8,7 @@
 fn foo<const SIZE: usize>() {
     let arr: [u8; SIZE] = unsafe {
         #[allow(deprecated)]
-        let mut array: [u8; SIZE] = mem::uninitialized();
+        let array: [u8; SIZE] = mem::uninitialized();
         array
     };
 }