1 error[E0499]: cannot borrow `xs` as mutable more than once at a time
2 --> $DIR/vec-mut-iter-borrow.rs:15:9
4 LL | for x in &mut xs {
7 | first mutable borrow occurs here
8 | borrow used here, in later iteration of loop
9 LL | xs.push(1) //~ ERROR cannot borrow `xs`
10 | ^^ second mutable borrow occurs here
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0499`.