@@ -5,7 +5,7 @@ LL | fn assignment_to_field_projection<'a, T>(
55 | -- lifetime `'a` defined here
66...
77LL | 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
99...
1010LL | return result;
1111 | ------ returning this value requires that `list.0.value` is borrowed for `'a`
@@ -19,7 +19,7 @@ LL | fn assignment_to_field_projection<'a, T>(
1919LL | if let Some(n) = (list.0).next.as_mut() {
2020 | ^^^^^^^^^^^^^---------
2121 | |
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
2323 | argument requires that `list.0.next` is borrowed for `'a`
2424
2525error[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>(
2929 | -- lifetime `'a` defined here
3030...
3131LL | 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
3333...
3434LL | return result;
3535 | ------ 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>(
4343LL | if let Some(n) = ((((list.0).0).0).0).0.next.as_mut() {
4444 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^---------
4545 | |
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
4747 | argument requires that `list.0.0.0.0.0.next` is borrowed for `'a`
4848
4949error: aborting due to 4 previous errors
0 commit comments