@@ -5,7 +5,7 @@ LL | fn assignment_to_field_projection<'a, T>(
5
5
| -- lifetime `'a` defined here
6
6
...
7
7
LL | result.push(&mut (list.0).value);
8
- | ^^^^^^^^^^^^^^^^^^^ mutable borrow starts here in previous iteration of loop
8
+ | ^^^^^^^^^^^^^^^^^^^ `list.0.value` was mutably borrowed here in the previous iteration of the loop
9
9
...
10
10
LL | return result;
11
11
| ------ returning this value requires that `list.0.value` is borrowed for `'a`
@@ -19,7 +19,7 @@ LL | fn assignment_to_field_projection<'a, T>(
19
19
LL | if let Some(n) = (list.0).next.as_mut() {
20
20
| ^^^^^^^^^^^^^---------
21
21
| |
22
- | mutable borrow starts here in previous iteration of loop
22
+ | `list.0.next` was mutably borrowed here in the previous iteration of the loop
23
23
| argument requires that `list.0.next` is borrowed for `'a`
24
24
25
25
error[E0499]: cannot borrow `list.0.0.0.0.0.value` as mutable more than once at a time
@@ -29,7 +29,7 @@ LL | fn assignment_through_projection_chain<'a, T>(
29
29
| -- lifetime `'a` defined here
30
30
...
31
31
LL | result.push(&mut ((((list.0).0).0).0).0.value);
32
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow starts here in previous iteration of loop
32
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `list.0.0.0.0.0.value` was mutably borrowed here in the previous iteration of the loop
33
33
...
34
34
LL | return result;
35
35
| ------ returning this value requires that `list.0.0.0.0.0.value` is borrowed for `'a`
@@ -43,7 +43,7 @@ LL | fn assignment_through_projection_chain<'a, T>(
43
43
LL | if let Some(n) = ((((list.0).0).0).0).0.next.as_mut() {
44
44
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^---------
45
45
| |
46
- | mutable borrow starts here in previous iteration of loop
46
+ | `list.0.0.0.0.0.next` was mutably borrowed here in the previous iteration of the loop
47
47
| argument requires that `list.0.0.0.0.0.next` is borrowed for `'a`
48
48
49
49
error: aborting due to 4 previous errors
0 commit comments