Unclear lifetime mismatch error with anonymous lifetimes #125143
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
In the first part:
The different lifetimes should be shown since no difference is visible right now.
In the second part, one arrow should point at the right
&X
.Rationale and extra context
No response
Other cases
When annotating the impl with two different lifetimes, the error message becomes more explanatory:
produces
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: