[NLL] Loss of span for consider adding an explicit lifetime bound
suggestions
#96332
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-diagnostics
Working towards the "diagnostic parity" goal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In tests like:
Under NLL we rightfully suggest to add a lifetime bound:
but the actual span where the lifetime bound should be added is lost when we compare to non-nll mode:
This is a diagnostic regression that should be fixed.
@rustbot label +A-NLL +NLL-diagnostics
The text was updated successfully, but these errors were encountered: