rust/tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr
2023-01-11 09:32:08 +00:00

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