"ambiguous associated type" when accessing concrete type (but not on generic type) #104119
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-inference
Area: Type inference
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider the following code:
Using
Type::Provenance
works whenType
is a generic parameter that implements the appropriate trait, but strangely fails whenType
is a concrete type that implements the appropriate trait. That seems like a bug? Or at least it is an odd limitation that it'd be nice to lift. :)Thanks to @memoryleak47 for pointing this out!
The text was updated successfully, but these errors were encountered: