Error duplicate definitions for impls on distinct associated types #58171
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-type-system
Area: Type system
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
As a minimal example of the error I'm running into (using the
typenum
crate although I don't think it's specific to that):gives
I think this might be related to #20400, but I'm not sure. I tried making a simpler reproduction on the playground without using
typenum
, but I wasn't able to.Clearly,
X
andY
are distinct types, as they are not assignable to each other, so why can't I define the same function inimpl
s for them?Playground
The text was updated successfully, but these errors were encountered: