2020-08-08 12:16:43 -05:00
|
|
|
error[E0382]: use of partially moved value: `x`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-subpaths-moves-root.rs:4:10
|
2018-09-15 10:29:29 -05:00
|
|
|
|
|
|
|
|
LL | drop(x.0);
|
2020-08-08 12:16:43 -05:00
|
|
|
| --- value partially moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(x);
|
2019-02-06 09:42:21 -06:00
|
|
|
| ^ value used here after partial move
|
2018-09-15 10:29:29 -05:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: partial move occurs because `x.0` has type `Vec<i32>`, which does not implement the `Copy` trait
|
2018-09-15 10:29:29 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2018-09-15 10:29:29 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|