Open rodrimati1992 opened 4 years ago
This shouldn't be too hard. This comes from the parser, specifically the code that parses a pattern, which is one of these parse_pat_*
functions. Somewhere there is the code to parse a struct pattern. I assume the error above happens when it successfully parses a struct field and then expects a comma or closing brace. To fix it you'd have to check for @ ..
and report a better error message.
@rustbot claim
This erroneous code:
Produces this error message
It would be better if instead it produced an error message like this:
Meta
Tried the code in these Rust versions and they all produced the same error message:
1.37.0 stable
1.45.0 stable
1.46.0-beta.1 (2020-07-15 e51b714db8ff82ac38ea)
1.47.0-nightly (2020-07-22 bbebe7351fcd29af1eb9)