Esteban Küber
03c88aaf21
Tweak .clone()
suggestion to work in more cases
...
When going through auto-deref, the `<T as Clone>` impl sometimes needs
to be specified for rustc to actually clone the value and not the
reference.
```
error[E0507]: cannot move out of dereference of `S`
--> $DIR/needs-clone-through-deref.rs:15:18
|
LL | for _ in self.clone().into_iter() {}
| ^^^^^^^^^^^^ ----------- value moved due to this method call
| |
| move occurs because value has type `Vec<usize>`, which does not implement the `Copy` trait
|
note: `into_iter` takes ownership of the receiver `self`, which moves value
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
help: you can `clone` the value and consume it, but this might not be your desired behavior
|
LL | for _ in <Vec<usize> as Clone>::clone(&self.clone()).into_iter() {}
| ++++++++++++++++++++++++++++++ +
```
CC #109429 .
2023-12-04 21:54:32 +00:00
..
2023-09-29 18:51:59 +08:00
2023-11-24 19:15:52 +01:00
2023-10-21 10:29:40 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-06-15 12:01:38 +02:00
2023-11-24 19:15:52 +01:00
2023-09-23 01:34:50 +00:00
2023-09-23 01:54:05 +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-09-21 22:20:58 +02: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-16 17:00:23 +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-10 13:00:27 -08:00
2023-10-18 23:53: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-08-17 14:33:33 +02:00
2023-08-17 14:33:33 +02:00
2023-08-17 14:33:33 +02:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-16 06:07:33 +00:00
2023-11-16 06:07:33 +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-11-29 18:55:00 +00:00
2023-10-18 23:53:18 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-09-21 22:20:58 +02:00
2023-11-24 19:15:52 +01:00
2023-09-21 22:20:58 +02: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
2023-10-03 02:25:32 +00:00
2023-06-27 23:31:06 +00:00
2023-11-24 19:15:52 +01:00
2023-11-02 20:35:20 -04: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-10-05 01:04:41 +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-26 09:02:25 -05:00
2023-11-24 19:15:52 +01:00
2023-08-28 03:16:48 -07: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-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +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-07-04 18:13:31 +08: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-11-24 19:15:52 +01:00
2023-09-29 18:51:59 +08: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-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-10-11 18:26:44 +00:00
2023-10-11 18:26:44 +00:00
2023-10-11 18:26:44 +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-02 20:57:05 +00:00
2023-11-02 20:57:05 +00:00
2023-11-02 20:57:05 +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-06-25 09:26:17 +08:00
2023-06-25 09:26:17 +08:00
2023-07-02 15:35:18 +08:00
2023-07-02 15:35:18 +08:00
2023-08-15 10:58:33 +00:00
2023-11-24 19:15:52 +01:00
2023-08-16 00:26:10 +08:00
2023-08-16 00:26:10 +08:00
2023-08-16 00:26:10 +08:00
2023-11-08 14:15:25 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-29 18:55:00 +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-09-29 18:51:59 +08: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-28 22:23:21 +02:00
2023-07-28 22:23:21 +02:00
2023-07-28 22:23:21 +02:00
2023-10-05 01:04:41 +00:00
2023-08-08 15:11:23 +00:00
2023-08-08 15:11:23 +00:00
2023-08-08 15:11:23 +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-12-01 21:37:43 +01:00
2023-12-01 21:37:43 +01:00
2023-11-24 19:15:52 +01:00
2023-11-16 17:00:23 +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-12-04 21:54:32 +00:00
2023-11-24 19:15:52 +01:00
2023-11-16 17:00:23 +00:00
2023-11-24 19:15:52 +01:00
2023-10-27 12:42:42 +02:00
2023-11-24 19:15:52 +01:00
2023-11-27 22:18:03 +09:00
2023-11-27 22:18:03 +09:00
2023-06-15 12:01:38 +02:00
2023-08-03 16:44:02 +08:00
2023-11-24 19:15:52 +01:00
2023-10-18 23:53:18 +00:00
2023-08-28 03:16:48 -07:00
2023-11-24 19:15:52 +01:00
2023-10-04 21:09:54 +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-10-20 15:58:25 +00:00
2023-10-20 15:58:25 +00:00
2023-11-24 19:15:52 +01:00
2023-10-04 02:04:14 +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-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-16 17:00:23 +00:00
2023-11-16 17:00:23 +00:00
2023-11-16 17:00:23 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-10-08 10:06:17 +00:00
2023-10-08 10:06:17 +00:00
2023-11-24 19:15:52 +01:00
2023-11-23 20:22:17 +08:00
2023-11-23 20:22:17 +08:00
2023-11-23 20:22:17 +08:00
2023-07-14 07:12:35 +08: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-11-24 19:15:52 +01:00
2023-10-04 21:09:54 +00:00
2023-10-04 21:09:54 +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-19 17:47:41 +00:00
2023-11-16 17:00:23 +00:00
2023-10-30 22:12:07 +00:00
2023-10-18 23:53: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
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-18 00:40:11 +00:00
2023-11-24 19:15:52 +01:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-10-30 22:19:17 +00:00