Errormessage regarding curly braces in for statement #42982
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
I got the following code:
I don't know if the case without surrounding parentheses is intended to work but apart from that the error message is somewhat missleading.
It seems that the tokenizer doesn't get this right?
Edit: Include error message
The text was updated successfully, but these errors were encountered: