summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr
blob: 70793a9c92084b040df1a5ad496142a2d30303d4 (plain)
1
2
3
4
5
6
7
8
error: lifetime parameters must be declared prior to type and const parameters
  --> $DIR/issue-80512-param-reordering-with-defaults.rs:3:18
   |
LL | struct S<T = (), 'a>(&'a T);
   |         ---------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T = ()>`

error: aborting due to previous error