Associated type equality fails with trait bound on struct #51446
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This may be related/identical to #47897 and #37883.
The following code fails to compile with a dubious error. This is a simplified reproduction example based on @DutchGhost's code on IRC. Note that commenting the
where
clause in the definition ofstruct B
makes the code compile. playgroundThe text was updated successfully, but these errors were encountered: