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
..
2023-07-10 20:09:26 +00:00
2023-05-05 22:40:05 +12:00
2024-04-11 16:41:41 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2024-02-22 17:29:25 +01:00
2024-02-22 17:29:25 +01:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2024-02-06 02:22:57 +00:00
2024-02-06 02:22:57 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-13 12:46:58 -05:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2023-07-10 20:09:26 +00:00
2023-11-24 19:15:52 +01:00
2024-02-08 08:10:43 +00:00
2024-02-08 08:10:43 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-03-07 14:26:31 +00:00
2024-03-07 14:26:31 +00:00
2023-11-24 19:15:52 +01:00
2023-11-07 05:23:09 +00:00
2023-05-08 03:36:30 +00:00
2024-02-08 08:10:43 +00:00
2024-02-08 08:10:43 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-01-29 17:43:07 +08:00
2024-01-29 17:43:07 +08:00
2024-02-16 20:02:50 +00:00
2023-04-12 22:50:10 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-01-05 09:30:27 +00:00
2024-02-18 11:19:24 +03:00
2024-02-18 11:19:24 +03:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-03-27 14:02:15 +00:00
2024-02-16 20:02:50 +00:00
2023-07-10 20:09:26 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-07-10 20:09:26 +00:00
2023-11-24 19:15:52 +01:00
2023-04-21 21:34:59 +00:00
2023-08-18 14:46:20 +02:00
2024-04-11 16:41:41 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-08-02 15:30:24 +00:00
2023-08-02 15:30:24 +00:00
2023-11-24 19:15:52 +01:00