Compilation error when implementing From
using a concrete associated type from another crate
#109885
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-coherence
Area: Coherence
C-bug
Category: This is a bug.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I have the following files from 2 crates:
Currently I have the following error:
I expected that
<dep::S3 as Wrapped>::WrappedType
would be resolved to a single type like<S2 as Wrapped>::WrappedType>
, and that the code would compile.Context
I'm using
dep::S3
andW
as the inputs of a proc-macro, and I would like to generateimpl From<dep::W3> for W
inside the proc-macro, but without mentioningdep::W3
explicitely.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: