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
use std::kinds::Sized;// Note: this must be generic for the problem to show uptraitFoo<A> for Sized? {fnfoo(&self);}implFoo<u8>for[u8]{fnfoo(&self){}}impl<'a,A,T>Foo<A>for&'aTwhereT:Foo<A>{fnfoo(&self){Foo::foo(*self)}}traitBar{fnfoo(&self);}structMyType;implBarforMyType{fnfoo(&self){}}fnmain(){letmut m = MyType;(&mut m).foo()}
with the error
<anon>:31:9: 31:23 error: the trait `Foo<_>` is not implemented for the type `MyType`
<anon>:31 (&mut m).foo()
^~~~~~~~~~~~~~
As noted above, this seems to depend on one of the traits using generics.