summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr
blob: ba08b4646d0f4981816fa2ab3a401a97287ee91e (plain)
1
2
3
4
5
6
7
8
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