]> git.lizzy.rs Git - rust.git/blob - src/test/ui/moves/moves-based-on-type-cyclic-types-issue-4821.stderr
Auto merge of #73660 - flip1995:clippyup, r=nikomatsakis
[rust.git] / src / test / ui / moves / moves-based-on-type-cyclic-types-issue-4821.stderr
1 error[E0382]: use of 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 moved here
6 ...
7 LL |     consume(node) + r
8    |             ^^^^ value used here after partial move
9    |
10    = note: move occurs because value has type `std::boxed::Box<List>`, which does not implement the `Copy` trait
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0382`.