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