Error message for inferred lifetime failure isn't great #40900
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code does not work:
The error message I get is:
This code does work:
The only clue I got was this note:
which even then I wasn't clear if my change would make a difference or not. Is there some change we could make to the output that would make the solution clearer?
The text was updated successfully, but these errors were encountered: