Early/late bound lifetime coercion produces a confusing diagnostic #140896
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
Rationale and extra context
Proposed changes (ranked by importance):
{A::<'_>::associated}
part of the fn type as linked/important. I thought that I might just need to add/remove lifetimes.'a
and'b
in the diagnostic. Using the existing lifetime names instead of "shadowing" the definitions would be nice. This introduced more confusion since I commonly used'a
and'b
when writing lifetimes and it wasn't clear to me that these were different.In my mind this is is an ideal output but some of these might not be feasible for one reason or another.
Other cases
Rust Version
Anything else?
You can see my initial confusion here: #140663.
I would be interested in trying to implement some of these changes.
The text was updated successfully, but these errors were encountered: