You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubtraitBar{}pubtraitFoo{typeBarType:Bar;}pubtraitHouston{typeFooType:Foo;fnwe_have_a(&self,problem:&Self::FooType::BarType);// does not compile}
we get:
src/foo.rs:10:35: 10:57 error: ambiguous associated type; specify the type using the syntax `<<Self as foo::Houston>::FooType as Trait>::BarType` [E0223]
src/foo.rs:10 fn we_have_a(&self, problem: &Self::FooType::BarType);
This works, but it's not clear why the compiler consideres it an ambiguity:
Given the following code:
we get:
This works, but it's not clear why the compiler consideres it an ambiguity:
The text was updated successfully, but these errors were encountered: