Closed
Description
struct S<T = (), 'a>(&'a T);
results in:
error: lifetime parameters must be declared prior to type parameters
--> src/lib.rs:1:18
|
1 | struct S<T = (), 'a>(&'a T);
| ---------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T>`
when it should be:
help: reorder the parameters: lifetimes, then types, then consts: `<'a, T = ()>`
This should be easy to fix: just replace ident
in the following line with an appropriate format string.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Suggestions generated by the compiler applied by `cargo fix`Category: An issue proposing an enhancement or a PR with one.Diagnostics: A diagnostic that is giving misleading or incorrect information.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the compiler team, which will review and decide on the PR/issue.