Error for incorrect identifier patterns could be improved #65400
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The compiler could suggest that
e
identifier must precede the pattern in the following code:playpen link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ca2dc7094a56b0478edefe0faefefe0e
Current error message:
It could be improved as:
The text was updated successfully, but these errors were encountered: