rust/tests/ui/moves/moves-based-on-type-cyclic-types-issue-4821.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
669 B
Plaintext
Raw Normal View History

error[E0382]: use of partially moved value: `node`
2018-12-25 15:56:47 +00:00
--> $DIR/moves-based-on-type-cyclic-types-issue-4821.rs:13:13
2018-08-08 12:28:26 +00:00
|
LL | Some(right) => consume(right),
| ----- value partially moved here
2018-08-08 12:28:26 +00:00
...
2019-03-09 12:03:44 +00:00
LL | consume(node) + r
| ^^^^ value used here after partial move
2018-08-08 12:28:26 +00:00
|
= note: partial move occurs because value has type `Box<List>`, which does not implement the `Copy` trait
help: borrow this binding in the pattern to avoid moving the value
|
LL | Some(ref right) => consume(right),
| +++
2018-08-08 12:28:26 +00:00
error: aborting due to 1 previous error
2018-08-08 12:28:26 +00:00
For more information about this error, try `rustc --explain E0382`.