NLL: E0594 removes first char of variable name #51515
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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.
Milestone
When I build this code on nightly...
...I get these errors:
The first error is fine, but the second one is missing the first character of
foo
. It looks like rustc assumes the first character is an&
and removes it without checking.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: