[NLL] Tidy up error messages when borrowing locals #48643
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-NLL
Area: Non-lexical lifetimes (NLL)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
NLL-diagnostics
Working towards the "diagnostic parity" goal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given this test which is included in #48592 and when merged will be located here https://github.com/rust-lang/rust/tree/master/src/test/ui/nll/borrowed-local-error.rs
With #48592 merged, the output looks like ...
@nikomatsakis said that the output should look like ...
This is what I think it should look like:
Previous discussion #48592 (comment)
The text was updated successfully, but these errors were encountered: