Esteban Küber
c1a7af0f2a
Suggest mutable borrow on read only for-loop that should be mutable
...
```
error[E0596]: cannot borrow `*test` as mutable, as it is behind a `&` reference
--> $DIR/suggest-mut-iterator.rs:22:9
|
LL | for test in &tests {
| ------ this iterator yields `&` references
LL | test.add(2);
| ^^^^ `test` is a `&` reference, so the data it refers to cannot be borrowed as mutable
|
help: use a mutable iterator instead
|
LL | for test in &mut tests {
| +++
```
Address #114311 .
2023-08-23 21:46:18 +00:00
..
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-28 14:44:03 +00:00
2023-07-10 20:09:26 +00:00
2023-05-21 14:16:41 +02:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-05-21 13:37:32 +02:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:28 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-05-21 17:48:36 -07:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-05-21 13:37:32 +02:00
2023-07-10 20:09:26 +00:00
2023-05-25 17:40:46 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:28 +00:00
2023-07-10 20:09:28 +00:00
2023-07-10 20:09:28 +00:00
2023-07-14 07:12:38 +08:00
2023-07-14 07:12:38 +08:00
2023-05-14 23:22:30 +00:00
2023-05-14 23:22:30 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-05-25 17:40:46 +00:00
2023-05-25 17:40:46 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-14 07:12:35 +08:00
2023-07-14 07:12:35 +08:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-05-29 13:11:03 +08:00
2023-05-29 13:11:03 +08:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-08-04 13:17:39 +02:00
2023-07-10 20:09:26 +00:00
2023-08-23 21:46:18 +00:00
2023-08-23 21:46:18 +00:00
2023-08-23 21:46:18 +00:00
2023-08-04 13:17:39 +02:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-08-04 13:17:39 +02:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:28 +00:00