Disambiguating associated types from super traits in a trait object #48285
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-trait-objects
Area: trait objects, vtable layout
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-lang
Relevant to the language 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.
Suppose you have a trait:
How do you declare a
Foo
trait object, say aBox
? TheOutput
associated types need to be specified but they need to be disambiguated between the two super traits. Projections that I’ve tried don’t seem to work but it’s possible I didn’t try the right incarnation.This stems from the https://users.rust-lang.org/t/how-to-specify-associated-types-with-same-name-in-generics/15677 post.
The text was updated successfully, but these errors were encountered: