]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-reinit.stderr
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / borrowck / borrowck-reinit.stderr
1 error[E0382]: use of moved value: `x`
2   --> $DIR/borrowck-reinit.rs:6:16
3    |
4 LL |     let mut x = Box::new(0);
5    |         ----- move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
6 ...
7 LL |     drop(x);
8    |          - value moved here
9 LL |     let _ = (1,x);
10    |                ^ value used here after move
11    |
12 help: consider cloning the value if the performance cost is acceptable
13    |
14 LL |     drop(x.clone());
15    |           ++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0382`.