blob: bf2b21c012d4200f5ee8ee698ff7a826a83c2900 (
plain)
1
2
3
4
5
6
7
8
|
error: lifetime parameters must be declared prior to type and const parameters
--> $DIR/param-order-err-pretty-prints-default.rs:1:33
|
LL | struct Foo<const M: usize = 10, 'a>(&'a u32);
| ----------------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const M: usize = 10>`
error: aborting due to 1 previous error
|