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
I believe this shows the same behavior (playground):
pubtraitId{typeOut;}impl<T>IdforT{typeOut = T;}pubfncallee<T>(x:T) -> <TasId>::Out{ x }pubfncaller<T:Id>(x:T) -> <TasId>::Out{// Uncomment to see what rustc thinks the type `<T as Id>::Out` is.// let _: <T as Id>::Out = x;callee(x)}
Uncommenting that let gives an error with:
= note: expected associated type `<T as Id>::Out`
found type parameter `T`
here
caller
uses theIntoIterator
ParamEnv
candidate whilecallee
uses an impl candidate.The text was updated successfully, but these errors were encountered: