diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-03-13 03:41:41 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-04-11 16:41:41 +0000 |
| commit | 10c2fbec2437a873463382726d4815520430ff1f (patch) | |
| tree | d067beb0dbc809ca4fe64ad84be899c97b082d4c /tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs | |
| parent | bce78102c31c2e71313af1e8119eb882dea35fad (diff) | |
| download | rust-10c2fbec2437a873463382726d4815520430ff1f.tar.gz rust-10c2fbec2437a873463382726d4815520430ff1f.zip | |
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() | ```
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs')
0 files changed, 0 insertions, 0 deletions
