Suggest adding ' for incorrect loop labels #49240
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In situations like these, a more helpful suggestion would be to change
label
to'label
. I imagine this error could be special cased to look at the identifier and suggest something different forloop
/while
/for
.The text was updated successfully, but these errors were encountered: