blob: 0eaeb910be64a591cbe078a40d000fc8e2fb039a [file] [log] [blame]
// revisions:cfail1
#![feature(const_generics)]
//[cfail1]~^ WARN the feature `const_generics` is incomplete
struct S<T, const N: usize>([T; N]);
fn f<T, const N: usize>(x: T) -> S<T, {N}> { panic!() }
fn main() {
f(0u8);
//[cfail1]~^ ERROR type annotations needed
}