blob: f8980c9b54d7509e8911b0a7d4f118b6c9e63682 [file] [log] [blame]
//@ reference: items.generics.syntax.decl-order
struct Good<const N: usize, T> {
arr: [u8; { N }],
another: T,
}
struct Bad<const N: usize, 'a, T, 'b, const M: usize, U> {
//~^ ERROR lifetime parameters must be declared prior
a: &'a T,
b: &'b U,
}
fn main() {
let _: Bad<7, 'static, u32, 'static, 17, u16>;
//~^ ERROR lifetime provided when a type was expected
}