]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-consume-upcast-box.stderr
Rollup merge of #101675 - beetrees:set-times-no-panic, r=joshtriplett
[rust.git] / src / test / ui / borrowck / borrowck-consume-upcast-box.stderr
1 error[E0382]: use of moved value: `b`
2   --> $DIR/borrowck-consume-upcast-box.rs:10:13
3    |
4 LL | fn foo(b: Box<dyn Foo + Send>) {
5    |        - move occurs because `b` has type `Box<dyn Foo + Send>`, which does not implement the `Copy` trait
6 LL |     consume(b);
7    |             - value moved here
8 LL |     consume(b);
9    |             ^ value used here after move
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0382`.