Improve error message for one named, one anonymous lifetimes - underline correct source #43434
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
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.
The error message wrongly underlines x. It should underline
y
, which is the source of the error. The refined message will be like thiscc @nikomatsakis
The text was updated successfully, but these errors were encountered: