1 error[E0382]: borrow of moved value: `n`
2 --> $DIR/use-after-move-implicity-coerced-object.rs:28:13
4 LL | let n: Box<_> = Number { n: 42 }.into();
5 | - move occurs because `n` has type `Box<Number>`, which does not implement the `Copy` trait
6 LL | let mut l: Box<_> = List { list: Vec::new() }.into();
10 LL | let x = n.to_string();
11 | ^^^^^^^^^^^^^ value borrowed here after move
13 note: consider changing this parameter type in method `push` to borrow instead if owning the value isn't necessary
14 --> $DIR/use-after-move-implicity-coerced-object.rs:17:27
16 LL | fn push(&mut self, n: Box<dyn ToString + 'static>) {
17 | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ this parameter takes ownership of the value
21 error: aborting due to previous error
23 For more information about this error, try `rustc --explain E0382`.