fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
461 B14 linesraw
1error[E0499]: cannot borrow `x` as mutable more than once at a time
2  --> $DIR/issue-11715.rs:5:13
3   |
4LL |     let y = &mut x;
5   |             ------ first mutable borrow occurs here
6LL |     let z = &mut x;
7   |             ^^^^^^ second mutable borrow occurs here
8LL |     z.use_mut();
9LL |     y.use_mut();
10   |     - first borrow later used here
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0499`.