mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 12:23:22 +00:00
![]() ``` error[E0507]: cannot move out of `*x` which is behind a shared reference --> $DIR/borrowck-fn-in-const-a.rs:6:16 | LL | return *x | ^^ move occurs because `*x` has type `String`, which does not implement the `Copy` trait | help: consider cloning the value if the performance cost is acceptable | LL - return *x LL + return x.clone() | ``` |
||
---|---|---|
.. | ||
functional-struct-update-noncopyable.rs | ||
functional-struct-update-noncopyable.stderr | ||
functional-struct-update-respects-privacy.rs | ||
functional-struct-update-respects-privacy.stderr |