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