]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/issues/issue-61336-1.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-61336-1.rs
index 5b5e431bf2ff6d6824e010b8469010d88f753cad..165d3e1c2e60169af4f1b669ae0c63a6646005f4 100644 (file)
@@ -1,9 +1,10 @@
 #![feature(const_generics)]
 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
 
+// build-pass
+
 fn f<T: Copy, const N: usize>(x: T) -> [T; N] {
     [x; N]
-    //~^ ERROR array lengths can't depend on generic parameters
 }
 
 fn main() {