fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
450 B13 linesraw
1error[E0505]: cannot move out of `x` because it is borrowed
2  --> $DIR/borrowck-no-cycle-in-exchange-heap.rs:16:15
3   |
4LL |       Cycle::Node(ref mut y) => {
5   |                   --------- borrow of `x.0` occurs here
6LL |         y.a = x;
7   |         ---   ^ move out of `x` occurs here
8   |         |
9   |         borrow later used here
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0505`.