1 An associated type binding was done outside of the type parameter declaration
2 and `where` clause. Erroneous code example:
7 fn boo(&self) -> <Self as Foo>::A;
14 fn boo(&self) -> usize { 42 }
17 fn baz<I>(x: &<I as Foo<A=Bar>>::A) {}
18 // error: associated type bindings are not allowed here
21 To solve this error, please move the type bindings in the type parameter
26 # trait Foo { type A; }
27 fn baz<I: Foo<A=Bar>>(x: &<I as Foo>::A) {} // ok!
30 Or in the `where` clause:
34 # trait Foo { type A; }
35 fn baz<I>(x: &<I as Foo>::A) where I: Foo<A=Bar> {}