2018-09-30 21:21:31 +02:00
|
|
|
error[E0507]: cannot move out of an `Rc`
|
2019-04-07 16:07:36 +01:00
|
|
|
--> $DIR/issue-52086.rs:8:10
|
2018-09-30 21:21:31 +02:00
|
|
|
|
|
|
|
|
LL | drop(x.field);
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^ move occurs because value has type `Vec<i32>`, which does not implement the `Copy` trait
|
2024-03-13 03:41:41 +00:00
|
|
|
|
|
|
|
|
help: consider cloning the value if the performance cost is acceptable
|
|
|
|
|
|
|
|
|
LL | drop(x.field.clone());
|
|
|
|
| ++++++++
|
2018-09-30 21:21:31 +02:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of an `Arc`
|
2019-04-07 16:07:36 +01:00
|
|
|
--> $DIR/issue-52086.rs:12:10
|
2018-09-30 21:21:31 +02:00
|
|
|
|
|
|
|
|
LL | drop(y.field);
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^ move occurs because value has type `Vec<i32>`, which does not implement the `Copy` trait
|
2024-03-13 03:41:41 +00:00
|
|
|
|
|
|
|
|
help: consider cloning the value if the performance cost is acceptable
|
|
|
|
|
|
|
|
|
LL | drop(y.field.clone());
|
|
|
|
| ++++++++
|
2018-09-30 21:21:31 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0507`.
|