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