mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
9 lines
365 B
Plaintext
9 lines
365 B
Plaintext
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 previous error
|
|
|