Improve error message for incorrect 'for' input #40782
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.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
WG-diagnostics
Working group: Diagnostics
Hello, with rustc 1.17.0-nightly (8c4f2c6 2017-03-22), the following code
gives this error message:
An improved error message could add a hint :
did you mean 'for i in 0..2'
The text was updated successfully, but these errors were encountered: