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
clone-abort-3.rs:14:4: 14:14 error: cannot call a method whose type contains a self-type through an object
clone-abort-3.rs:14 x.clone();
^~~~~~~~~~
error: aborting due to previous error
task 'rustc' failed at 'explicit failure', /home/huon/rust/src/libsyntax/diagnostic.rs:102
task '<main>' failed at 'explicit failure', /home/huon/rust/src/librustc/lib.rs:395
It seems like that should prefer the (~Foo).clone() method rather than trying to call the .clone that the compiler knows that the inner type must have.