-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-error-codesArea: Explanation of an error code (--explain)Area: Explanation of an error code (--explain)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
As of commit 1e5450d, the detailed explanation for error E0117 begins with:
The `Drop` trait was implemented on a non-struct type.
Erroneous code example:
impl Drop for u32 {}
The "The Drop
trait was implemented on a non-struct type" sentence appears to be meant for E0120, but accidentally got included as part of the E0117 text.
I'm not sure how upstream wants to proceed here, but note that the example impl Drop for u32 {}
will trigger both E0117 and E0120. So keeping this example- while changing the text- is probably fine.
I lost more time than I'd like to admit to misreading the docs here :P.
Metadata
Metadata
Assignees
Labels
A-error-codesArea: Explanation of an error code (--explain)Area: Explanation of an error code (--explain)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.