Unhelpful error message when enum does not implement PartialEq
#110867
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.
Uh oh!
There was an error while loading. Please reload this page.
Code
Current output
In the example code, if
#[derive(Debug)]
is removed, the compiler is helpful and suggests to add it. In this case suggesting#[derive(PartialEq, Eq)]
would be great.Desired output
Rationale and extra context
No response
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: