fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
442 B14 linesraw
1error[E0499]: cannot borrow `v` as mutable more than once at a time
2  --> $DIR/two-phase-sneaky.rs:12:9
3   |
4LL |     v[0].push_str({
5   |     -    -------- first borrow later used by call
6   |     |
7   |     first mutable borrow occurs here
8LL | 
9LL |         v.push(format!("foo"));
10   |         ^ second mutable borrow occurs here
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0499`.