3 // Issue #62007: assigning over a field projection (`list.0 = n;` in
4 // this case) should be able to kill all borrows of `list.0`, so that
5 // `list.0` can be borrowed on the next iteration through the loop.
11 next: Option<Box<List<T>>>,
14 fn to_refs<T>(mut list: (&mut List<T>,)) -> Vec<&mut T> {
15 let mut result = vec![];
17 result.push(&mut (list.0).value);
18 if let Some(n) = (list.0).next.as_mut() {