fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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