1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete
4 struct Bad<const N: usize, T> { //~ ERROR type parameters must be declared prior
9 struct AlsoBad<const N: usize, 'a, T, 'b, const M: usize, U> {
10 //~^ ERROR type parameters must be declared prior
11 //~| ERROR lifetime parameters must be declared prior
17 let _: AlsoBad<7, 'static, u32, 'static, 17, u16>;
18 //~^ ERROR lifetime provided when a type was expected