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
#![feature(associated_types)]pubtraitFoo{typeBar:Sized;fninvoke(&self,bar: <SelfasFoo>::Bar);}pubstructWrap<F,B>{foo:F,bar:B,}impl<F:Foo>Wrap<F, <FasFoo>::Bar>{// Does not compile ^^}pubfnmain(){}
Output
$ rustc at.rs
at.rs:14:22: 14:37 error: this associated type is not allowed in this context
at.rs:14 impl<F: Foo> Wrap<F, <F as Foo>::Bar> {
^~~~~~~~~~~~~~~
error: aborting due to previous error