]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/moves-based-on-type-cyclic-types-issue-4821.stderr
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / 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 `Box<List>`, which does not implement the `Copy` trait
11 help: borrow this binding in the pattern to avoid moving the value
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`.