Confusing error message when not having a variable name #73750
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.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I had a weird error message on the rust compiler when trying to compile something like this:
Here is a playground link that reproduces it better.
This gives out a weird
expected ','
error, which wasn't at all what I was expecting. Certainly because of my sleepy state, but still weird.The text was updated successfully, but these errors were encountered: