2020-06-21 20:27:34 -05:00
|
|
|
error[E0382]: use of moved value: `b`
|
|
|
|
--> $DIR/issue-46099-move-in-macro.rs:14:12
|
|
|
|
|
|
|
|
|
LL | let b = Box::new(true);
|
2020-09-02 02:40:56 -05:00
|
|
|
| - move occurs because `b` has type `Box<bool>`, which does not implement the `Copy` trait
|
2020-06-21 20:27:34 -05:00
|
|
|
LL | test!({b});
|
2022-03-01 22:30:16 -06:00
|
|
|
| ^ value used here after move
|
2022-11-02 23:22:24 -05:00
|
|
|
|
|
|
|
|
help: consider cloning the value if the performance cost is acceptable
|
|
|
|
|
|
|
|
|
LL | test!({b.clone()});
|
|
|
|
| ++++++++
|
2020-06-21 20:27:34 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|