Fails to resolve associated types correctly in trait impls if the concrete type is in another crate #45945
Closed
Description
See https://github.com/sdroege/rust-associated-types-from-other-crate-projection-bug
The following are the relevant parts of the code:
In summary it seems like impl Something<<Foo as Mapper>::OtherType> for Baz {}
works fine as long as Foo
is defined in the same crate, otherwise it maps the Foo
(for whatever reason) to Baz
itself.