fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.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`.