]> git.lizzy.rs Git - rust.git/blob - src/test/ui/moves/moves-based-on-type-cyclic-types-issue-4821.stderr
Rollup merge of #75837 - GuillaumeGomez:fix-font-color-help-button, r=Cldfire
[rust.git] / src / test / ui / moves / moves-based-on-type-cyclic-types-issue-4821.stderr
1 error[E0382]: use of partially moved value: `node`
2   --> $DIR/moves-based-on-type-cyclic-types-issue-4821.rs:13:13
3    |
4 LL |         Some(right) => consume(right),
5    |              ----- value partially moved here
6 ...
7 LL |     consume(node) + r
8    |             ^^^^ value used here after partial move
9    |
10    = note: partial move occurs because value has type `std::boxed::Box<List>`, which does not implement the `Copy` trait
11 help: borrow this field in the pattern to avoid moving `node.next.0`
12    |
13 LL |         Some(ref right) => consume(right),
14    |              ^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0382`.