blob: 59a162e72c17674a4514fa8f08036ddf36dea83c [file] [log] [blame] [edit]
//@ run-rustfix
#[derive(Clone)]
struct Foo;
impl Foo {
fn foo(self) {}
}
fn main() {
let foo = &Foo;
<Foo as Clone>::clone(&foo.clone()).foo(); //~ ERROR cannot move out
}