2022-09-09 07:28:57 -05:00
|
|
|
error: lifetime parameters must be declared prior to type and const parameters
|
2021-10-23 10:57:49 -05:00
|
|
|
--> $DIR/intermixed-lifetime.rs:3:28
|
2020-07-30 13:43:44 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
|
2020-12-30 10:43:30 -06:00
|
|
|
| -----------------^^---------- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T = u32>`
|
2020-07-30 13:43:44 -05:00
|
|
|
|
2022-09-09 07:28:57 -05:00
|
|
|
error: lifetime parameters must be declared prior to type and const parameters
|
2021-10-23 10:57:49 -05:00
|
|
|
--> $DIR/intermixed-lifetime.rs:6:37
|
2020-07-30 15:53:32 -05:00
|
|
|
|
|
|
|
|
LL | struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
|
2020-12-30 10:43:30 -06:00
|
|
|
| --------------------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T = u32>`
|
2020-07-30 15:53:32 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2020-07-30 13:43:44 -05:00
|
|
|
|