Confusing error deriving PartialEq when child type impls PartialEq<OtherType> #63564
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-type-system
Area: Type system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Compiling the following code
produces,
Which I found very confusing. It would be helpful, at least, if we could indicate that this error occurred during macro expansion?
Playground here: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ac13781b2c40c1966e18adfb919c236c
The text was updated successfully, but these errors were encountered: