2022-09-09 12:28:57 +00:00
|
|
|
error: lifetime parameters must be declared prior to type and const parameters
|
2021-10-23 15:57:49 +00: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 16:43:30 +00: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 12:28:57 +00:00
|
|
|
error: lifetime parameters must be declared prior to type and const parameters
|
2021-10-23 15:57:49 +00: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 16:43:30 +00: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
|
|
|
|