]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/issues/issue-62878.rs
Rollup merge of #106927 - Ezrashaw:e0606-make-machine-applicable, r=estebank
[rust.git] / tests / ui / const-generics / issues / issue-62878.rs
1 // revisions: full min
2 #![cfg_attr(full, feature(adt_const_params, generic_arg_infer))]
3 #![cfg_attr(full, allow(incomplete_features))]
4
5 fn foo<const N: usize, const A: [u8; N]>() {}
6 //~^ ERROR the type of const parameters must not
7 //[min]~| ERROR `[u8; N]` is forbidden as the type of a const generic parameter
8
9 fn main() {
10     foo::<_, { [1] }>();
11 }