]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-reinit.stderr
Rollup merge of #102245 - ink-feather-org:const_cmp_by, r=fee1-dead
[rust.git] / src / test / 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 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0382`.