1 error[E0382]: use of moved value: `node`
2 --> $DIR/moves-based-on-type-cyclic-types-issue-4821.rs:13:13
4 LL | Some(right) => consume(right),
5 | ----- value moved here
8 | ^^^^ value used here after partial move
10 = note: 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`
13 LL | Some(ref right) => consume(right),
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0382`.