]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/issues/issue-62878.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / const-generics / issues / issue-62878.rs
index a70606c4a7d3254a2c49b363f5288aade69f0cd4..578ce765b2fb82048309f1be5ef325f467ed28c2 100644 (file)
@@ -1,5 +1,5 @@
 // revisions: full min
-#![cfg_attr(full, feature(const_generics))]
+#![cfg_attr(full, feature(adt_const_params, generic_arg_infer))]
 #![cfg_attr(full, allow(incomplete_features))]
 
 fn foo<const N: usize, const A: [u8; N]>() {}
@@ -7,7 +7,5 @@ fn foo<const N: usize, const A: [u8; N]>() {}
 //[min]~| ERROR `[u8; _]` is forbidden as the type of a const generic parameter
 
 fn main() {
-    foo::<_, {[1]}>();
-    //[full]~^ ERROR type provided when a constant was expected
-    //[full]~| ERROR mismatched types
+    foo::<_, { [1] }>();
 }