blob: c7576b1b32ddb7bafd923e08689a963f71edcbd8 [file] [log] [blame]
error[E0382]: capture of moved value: `t`
--> $DIR/borrowck-move-moved-value-into-closure.rs:24:22
|
LL | call_f(move|| { *t + 1 });
| ------ value moved (into closure) here
LL | call_f(move|| { *t + 1 }); //[ast]~ ERROR capture of moved value
| ^ value captured here after move
|
= note: move occurs because `t` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
error: aborting due to previous error
For more information about this error, try `rustc --explain E0382`.