1 error[E0507]: cannot move out of `*foo` which is behind a shared reference
2 --> $DIR/suggest-clone.rs:10:5
7 | | `*foo` moved due to this method call
8 | move occurs because `*foo` has type `Foo`, which does not implement the `Copy` trait
10 note: `Foo::foo` takes ownership of the receiver `self`, which moves `*foo`
11 --> $DIR/suggest-clone.rs:6:12
15 help: you can `clone` the value and consume it, but this might not be your desired behavior
17 LL | foo.clone().foo();
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0507`.