summary refs log tree commit diff
path: root/src/test/ui/borrowck/borrowck-consume-upcast-box.stderr
blob: aef1671342ef49bdde3459d02b7cb263f71cc5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0382]: use of moved value: `b`
  --> $DIR/borrowck-consume-upcast-box.rs:10:13
   |
LL |     consume(b);
   |             - value moved here
LL |     consume(b); //~ ERROR use of moved value
   |             ^ value used here after move
   |
   = note: move occurs because `b` has type `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>`, which does not implement the `Copy` trait

error: aborting due to previous error

For more information about this error, try `rustc --explain E0382`.