1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
4 type Array<T, const N: usize> = [T; N];
6 fn foo<const N: usize>() -> Array<N, ()> { //~ ERROR constant provided when a type was expected