summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issues/issue-62878.rs
blob: 4c08a484ef47b776e6d30a6cb58035df64d7f9ca (plain)
1
2
3
4
5
6
7
8
9
10
11
// revisions: full min
#![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]>() {}
//~^ ERROR the type of const parameters must not
//[min]~| ERROR `[u8; N]` is forbidden as the type of a const generic parameter

fn main() {
    foo::<_, { [1] }>();
}