1 error[E0382]: use of moved value: `b`
2 --> $DIR/borrowck-consume-upcast-box.rs:20:13
6 LL | consume(b); //~ ERROR use of moved value
7 | ^ value used here after move
9 = note: move occurs because `b` has type `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>`, which does not implement the `Copy` trait
11 error: aborting due to previous error
13 For more information about this error, try `rustc --explain E0382`.