rust/tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
325 B
Plaintext
Raw Normal View History

2022-09-09 07:28:57 -05:00
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);
2021-10-23 11:46:47 -05:00
| ---------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T = ()>`
error: aborting due to previous error