Incorrect error suggestion when using a type that does not recursively derive PartialEq, Eq #76183
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code
results in the error
Which is not correct:
Outer
does derivePartialEq
andEq
.The true error is that
Inner
does not derive the traits (or implementsStructuralEq
andStructuralPartialEq
), however it is probably not a good idea to leak this type in the error message, as it is an implementation detail?The text was updated successfully, but these errors were encountered: