Closed
Description
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:
error: associated function in `impl` without body
--> compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs:2349:5
|
2349 | / fn note_obligation_cause_code<T>(
2350 | | &self,
2351 | | err: &mut Diagnostic,
2352 | | predicate: &T,
... |
2357 | | ) where
2358 | | T: fmt::Display + ToPredicate<'tcx, T>;
| | ^ help: provide a definition for the function: `{ <body> }`
| |_______________________________________________|
This should be explicitly handled to avoid knock down errors.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: The lexing & parsing of Rust source code to an ASTDiagnostics: Too much output caused by a single piece of incorrect code.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.