fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0507]: cannot move out of `*foo` which is behind a shared reference 2 --> $DIR/clone-span-on-try-operator.rs:10:5 3 | 4LL | (*foo).foo(); 5 | ^^^^^^ ----- `*foo` moved due to this method call 6 | | 7 | move occurs because `*foo` has type `Foo`, which does not implement the `Copy` trait 8 | 9note: `Foo::foo` takes ownership of the receiver `self`, which moves `*foo` 10 --> $DIR/clone-span-on-try-operator.rs:6:12 11 | 12LL | fn foo(self) {} 13 | ^^^^ 14help: you can `clone` the value and consume it, but this might not be your desired behavior 15 | 16LL | (*foo).clone().foo(); 17 | ++++++++ 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0507`.