]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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