On missing HRLT annotation, we sometimes provide a slightly incorrect suggestion #72404
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
we currently give the following output
Beyond the verbosity, one of the suggestions offers
struct S<'a, 'a>
, which is not ideal.The text was updated successfully, but these errors were encountered: