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
https://doc.rust-lang.org/book/ufcs.html#angle-bracket-form gives an example that uses <Bar as Clone>::clone(self);, where using Clone::clone(self); works just as well (tested: rustc 1.6.0-nightly (2e07996 2015-10-29)). And therefore I have no idea why and where I'd need the longer form.
I tested
traitFoo{fnclone(&self);}#[derive(Clone)]structBar;implFooforBar{fnclone(&self){println!("Making a clone of Bar");//<Bar as Clone>::clone(self);Clone::clone(self);}}fnmain(){let b = Bar;Foo::clone(&b);}