Incorrect const parameter declaration on an impl block yields an uninformative syntax error #84946
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The lexing & parsing of Rust source code to an AST
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.
Given the following code (playground):
The current output is fairly uninformative:
Ideally the output should look something like this (perhaps with slightly clearer wording 😅):
The text was updated successfully, but these errors were encountered: