rust/tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr
2023-01-11 09:32:08 +00:00

9 lines
325 B
Plaintext

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