1 error: lifetime parameters must be declared prior to const parameters
2 --> $DIR/intermixed-lifetime.rs:6:28
4 LL | struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
5 | -----------------^^---------- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T = u32, const N: usize>`
7 error: type parameters must be declared prior to const parameters
8 --> $DIR/intermixed-lifetime.rs:6:32
10 LL | struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
11 | ---------------------^------- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T = u32, const N: usize>`
13 error: lifetime parameters must be declared prior to const parameters
14 --> $DIR/intermixed-lifetime.rs:10:37
16 LL | struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
17 | --------------------------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T = u32, const N: usize>`
19 error: type parameters must be declared prior to const parameters
20 --> $DIR/intermixed-lifetime.rs:10:28
22 LL | struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
23 | -----------------^----------- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T = u32, const N: usize>`
25 error: aborting due to 4 previous errors