Error suggests adding '_ lifetime but named lifetime is needed #105227
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code:
Gives:
But if you add the
'_
bound, it will still fail:That suggestion does work, but you have to first apply the first (erroring) suggestion to get it.
The text was updated successfully, but these errors were encountered: