]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-reinit.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / borrowck / borrowck-reinit.stderr
1 error[E0382]: use of moved value: `x` (Ast)
2   --> $DIR/borrowck-reinit.rs:18:16
3    |
4 LL |     drop(x);
5    |          - value moved here
6 LL |     let _ = (1,x); //~ ERROR use of moved value: `x` (Ast)
7    |                ^ value used here after move
8    |
9    = note: move occurs because `x` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
10
11 error[E0382]: use of moved value: `x` (Mir)
12   --> $DIR/borrowck-reinit.rs:18:16
13    |
14 LL |     drop(x);
15    |          - value moved here
16 LL |     let _ = (1,x); //~ ERROR use of moved value: `x` (Ast)
17    |                ^ value used here after move
18    |
19    = note: move occurs because `x` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0382`.