Detect spurious ;
before assoc fn body
#105226
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When copying bounds from a trait assoc item, you can accidentally copy the semicolon. If you forget to remove it, multiple errors are emitted, while the second is:
This should be explicitly handled to avoid knock down errors.
The text was updated successfully, but these errors were encountered: