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
#![crate_type="lib"]pubtraitFoo<'a,T>{fnfoo(&self);}pubfnfoo<'a,T>(x:&'aFoo<'a,T>){let x:&'aFoo<T> = x;// ^ the lifetime parameter of Foo is left to be infered.
x.foo();// ^ encoding this method call in metadata triggers an ICE. }
This is caused by writeback leaving around ReInfer in the MethodCallee associated with a method call (because MethodOrigin is not type-folded at all).
cc @nikomatsakis