rust/tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr

9 lines
365 B
Plaintext
Raw Normal View History

2022-09-09 07:28:57 -05:00
error: lifetime parameters must be declared prior to type and const parameters
2021-10-23 10:57:49 -05:00
--> $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