]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / const-generics / defaults / param-order-err-pretty-prints-default.stderr
1 error: lifetime parameters must be declared prior to type and const parameters
2   --> $DIR/param-order-err-pretty-prints-default.rs:1:33
3    |
4 LL | struct Foo<const M: usize = 10, 'a>(&'a u32);
5    |           ----------------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const M: usize = 10>`
6
7 error: aborting due to previous error
8