]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-consume-upcast-box.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[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:20:13
3    |
4 LL |     consume(b);
5    |             - value moved here
6 LL |     consume(b); //~ ERROR use of moved value
7    |             ^ value used here after move
8    |
9    = note: move occurs because `b` has type `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>`, which does not implement the `Copy` trait
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0382`.