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
trait Bar {
type Baz;
}
trait Foo {
type Bar : Bar;
}
fn _qux<F : Foo>(param: F::Bar::Baz) {}
fn main(){
}
error[E0223]: ambiguous associated type
--> src/main.rs:9:25
|
9 | fn _qux<F : Foo>(param: F::Bar::Baz) {}
| ^^^^^^^^^^^ ambiguous associated type
|
= note: specify the type using the syntax `<<F as Foo>::Bar as Trait>::Baz`
For me it looks like there's no ambiguity here: Foo has only one Bar and Bar has only one Baz.
For me it looks like there's no ambiguity here:
Foo
has only oneBar
andBar
has only oneBaz
.https://play.rust-lang.org/?gist=347da3f223a841b8ee96ee4a744ba180&version=nightly&mode=debug
The text was updated successfully, but these errors were encountered: