#![feature(const_generics)] //~^ WARN the feature `const_generics` is incomplete struct Bad { //~ ERROR type parameters must be declared prior arr: [u8; { N }], another: T, } struct AlsoBad { //~^ ERROR type parameters must be declared prior //~| ERROR lifetime parameters must be declared prior a: &'a T, b: &'b U, } fn main() { let _: AlsoBad<7, 'static, u32, 'static, 17, u16>; //~^ ERROR lifetime provided when a type was expected }