Better diagnostics for missing iterator in for-loop #78537
Labels
A-control-flow
Area: Control flow
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.
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.
Spot the bug:
Unfortunately, instead of pointing to the missing iterator, rust points to the 1:
I'd love it to instead say 'missing iterator for loop':
Other variants of this with less than ideal errors:
The text was updated successfully, but these errors were encountered: