]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/issue-46099-move-in-macro.stderr
fn-trait-closure test now pass on new solver
[rust.git] / tests / ui / moves / issue-46099-move-in-macro.stderr
1 error[E0382]: use of moved value: `b`
2   --> $DIR/issue-46099-move-in-macro.rs:14:12
3    |
4 LL |     let b = Box::new(true);
5    |         - move occurs because `b` has type `Box<bool>`, which does not implement the `Copy` trait
6 LL |     test!({b});
7    |            ^ value used here after move
8    |
9 help: consider cloning the value if the performance cost is acceptable
10    |
11 LL |     test!({b.clone()});
12    |             ++++++++
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0382`.