// revisions: full min
-#![cfg_attr(full, feature(const_generics))]
+#![cfg_attr(full, feature(const_generics, generic_arg_infer))]
#![cfg_attr(full, allow(incomplete_features))]
fn foo<const N: usize, const A: [u8; N]>() {}
fn main() {
foo::<_, {[1]}>();
- //[full]~^ ERROR type provided when a constant was expected
- //[full]~| ERROR mismatched types
+ //[full]~^ ERROR mismatched types
+ //[full]~| ERROR constant expression
}