2020-08-08 17:16:43 +00:00
|
|
|
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),
|
2020-08-08 17:16:43 +00:00
|
|
|
| ----- value partially moved here
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | consume(node) + r
|
2019-04-22 07:40:08 +00:00
|
|
|
| ^^^^ value used here after partial move
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: partial move occurs because value has type `Box<List>`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
2020-06-20 05:45:09 +00:00
|
|
|
|
|
|
|
|
LL | Some(ref right) => consume(right),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-11-21 15:44:16 +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`.
|