rust/tests/ui/rfcs/rfc-0107-bind-by-move-pattern-guards
Esteban Küber 10c2fbec24 Suggest .clone() in some move errors
```
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()
   |
```
2024-04-11 16:41:41 +00:00
..
bind-by-move-no-guards.rs
former-E0008-now-pass.rs
rfc-basic-examples.rs
rfc-reject-double-move-across-arms.rs
rfc-reject-double-move-across-arms.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
rfc-reject-double-move-in-first-arm.rs
rfc-reject-double-move-in-first-arm.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00