2021-02-24 07:02:51 -06:00
|
|
|
error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:33:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(s1);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::drop-copy` implied by `-D warnings`
|
2022-04-04 10:56:56 -05:00
|
|
|
note: argument has type `SomeStruct`
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:33:10
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(s1);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:34:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(s2);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2022-04-04 10:56:56 -05:00
|
|
|
note: argument has type `SomeStruct`
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:34:10
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(s2);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:36:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(s4);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2022-04-04 10:56:56 -05:00
|
|
|
note: argument has type `SomeStruct`
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:36:10
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(s4);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:39:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(s1);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::forget-copy` implied by `-D warnings`
|
2022-04-04 10:56:56 -05:00
|
|
|
note: argument has type `SomeStruct`
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:39:12
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(s1);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:40:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(s2);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2022-04-04 10:56:56 -05:00
|
|
|
note: argument has type `SomeStruct`
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:40:12
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(s2);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:42:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(s4);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2022-04-04 10:56:56 -05:00
|
|
|
note: argument has type `SomeStruct`
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_copy.rs:42:12
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(s4);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2018-01-16 10:06:27 -06:00
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|