Confusing error message for Foo{ bar @ .. }
pattern
#74701
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
A-patterns
Relating to patterns and pattern matching
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
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 e51b714)
1.47.0-nightly (2020-07-22 bbebe73)
The text was updated successfully, but these errors were encountered: