fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0499]: cannot borrow `foo` as mutable more than once at a time 2 --> $DIR/two-phase-across-loop.rs:17:22 3 | 4LL | strings.push(foo.get_string()); 5 | ------- ^^^ `foo` was mutably borrowed here in the previous iteration of the loop 6 | | 7 | first borrow used here, in later iteration of loop 8 9error: aborting due to previous error 10 11For more information about this error, try `rustc --explain E0499`.