NLL: match arm binding wrong suggestion in error message #51554
Labels
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.
Using this code on nightly:
I get this error message:
(playground link)
The correct suggestion is
ref mut some_name
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: