2017-02-27 02:32:41 +00:00
|
|
|
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:42:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | drop(s1);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::drop-copy` implied by `-D warnings`
|
2017-02-26 03:55:43 +00:00
|
|
|
note: argument has type SomeStruct
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:42:10
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | drop(s1);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^
|
|
|
|
|
2017-02-27 02:32:41 +00:00
|
|
|
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:43:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | drop(s2);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:43:10
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | drop(s2);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^
|
|
|
|
|
2017-02-27 02:32:41 +00:00
|
|
|
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:45:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | drop(s4);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:45:10
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | drop(s4);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^
|
|
|
|
|
2017-02-27 02:32:41 +00:00
|
|
|
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:48:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | forget(s1);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::forget-copy` implied by `-D warnings`
|
2017-02-26 03:55:43 +00:00
|
|
|
note: argument has type SomeStruct
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:48:12
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | forget(s1);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^
|
|
|
|
|
2017-02-27 02:32:41 +00:00
|
|
|
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:49:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | forget(s2);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:49:12
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | forget(s2);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^
|
|
|
|
|
2017-02-27 02:32:41 +00:00
|
|
|
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:51:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | forget(s4);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/drop_forget_copy.rs:51:12
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | forget(s4);
|
2017-02-26 03:55:43 +00:00
|
|
|
| ^^
|
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|