Files
rust/tests/ui
bors aa5dbee3eb Auto merge of #115147 - estebank:issue-114311, r=davidtwco
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 {
   |                  +++
```

Fix #114311.
2023-08-24 15:05:17 +00:00
..
2023-08-18 19:57:28 +02:00
2023-08-15 03:44:21 +00:00
2023-08-06 15:06:40 +02:00
2023-07-17 22:06:32 +00:00
2023-08-03 15:12:44 +02:00
2023-08-07 19:06:18 +00:00
2023-08-17 17:02:04 +00:00
2023-07-28 22:23:21 +02:00
2023-08-18 15:08:07 +01:00
2023-07-28 11:20:11 +00:00
2023-07-29 11:47:26 +02:00
2023-06-29 16:24:07 +03:00
2023-08-18 15:08:07 +01:00
2023-08-10 11:00:06 +02:00
2023-08-04 16:19:55 +00:00
2023-08-18 15:08:07 +01:00
2023-08-06 13:34:53 +00:00
2023-08-14 16:57:51 -07:00
2023-08-15 00:57:18 +08:00