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