Associated type constraints on supertraits don't propagate to usage sites #36978
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-trait-system
Area: Trait system
Consider the following:
Since the value of
FooT
is known from the definition ofFooBar
, line 4 should be fine — ifFB: FooBar
then necessarilyFB::FooT = usize
. However, this fails to compile with rustc 1.12.0, with the error:To make it compile, one must duplicate the information at every use-site:
The text was updated successfully, but these errors were encountered: