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