summaryrefslogtreecommitdiffstats
path: root/tests/ui/moves/suggest-clone.fixed
blob: 204bfdb10b0b30b46a9f03eebfb0400fb4efbf08 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix

#[derive(Clone)]
struct Foo;
impl Foo {
    fn foo(self) {}
}
fn main() {
    let foo = &Foo;
    foo.clone().foo(); //~ ERROR cannot move out
}