E0507 E0009 should be mutually exclusive #64135
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
E0507 E0009 should be mutually exclusive
E0009
E0507
Example
Playground
Output
Reasoning
A situation where both trigger,
E0507
is a much more clear indication of something wrong in the code. In this example, the intention is thatAlmostCopy
implementsCopy
, and will subsequently trigger neither error. The presence ofE0009
is misleading when it doesn't include any mention ofCopy
without the click-through.The text was updated successfully, but these errors were encountered: