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
traitA<T>{fna(&self) -> &T;}structB{}impl<'a,T>A<B>forT{}// <-- not all trait items implemented, missing: `a` in implementation
, applying the "implement the missing item: …" helper leads to the following code (after formatting):
traitA<T>{fna(&self) -> &T;}structB{}impl<'a,T>A<B>forT{fna(&self) -> &T{// <-- method `a` has an incompatible type for trait\nexpected fn pointer `fn(&T) -> &B`\n found fn pointer `fn(&T) -> &T`todo!()}}