1 error[E0499]: cannot borrow `foo` as mutable more than once at a time
2 --> $DIR/two-phase-across-loop.rs:17:22
4 LL | strings.push(foo.get_string());
5 | ^^^^^^^^^^^^^^^^ `foo` was mutably borrowed here in the previous iteration of the loop
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0499`.