2020-06-22 01:27:34 +00: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 07:40:56 +00:00
|
|
|
| - move occurs because `b` has type `Box<bool>`, which does not implement the `Copy` trait
|
2020-06-22 01:27:34 +00:00
|
|
|
LL | test!({b});
|
2022-03-02 04:30:16 +00:00
|
|
|
| ^ value used here after move
|
2022-11-03 04:22:24 +00:00
|
|
|
|
|
|
|
|
help: consider cloning the value if the performance cost is acceptable
|
|
|
|
|
|
|
|
|
LL | test!({b.clone()});
|
|
|
|
| ++++++++
|
2020-06-22 01:27:34 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|