]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-no-cycle-in-exchange-heap.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / borrowck-no-cycle-in-exchange-heap.stderr
1 error[E0505]: cannot move out of `x` because it is borrowed
2   --> $DIR/borrowck-no-cycle-in-exchange-heap.rs:16:15
3    |
4 LL |       Cycle::Node(ref mut y) => {
5    |                   --------- borrow of `x.0` occurs here
6 LL |         y.a = x;
7    |         ---   ^ move out of `x` occurs here
8    |         |
9    |         borrow later used here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0505`.