Unhelpful error message with identifiers named box
#97810
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code, which won't compile because of (edited:
#49733) #29641yields an unhelpful error message:
Particularly confusing if your text editor doesn't highlight
box
! It would be nicer to show some help proposing to rename the variable.The text was updated successfully, but these errors were encountered: