2 #![cfg_attr(full, feature(const_generics))]
3 #![cfg_attr(full, allow(incomplete_features))]
4 #![cfg_attr(min, feature(min_const_generics))]
6 type Array<T, const N: usize> = [T; N];
8 fn foo<const N: usize>() -> Array<N, ()> {
9 //~^ ERROR constant provided when a type was expected