2017-02-26 20:32:41 -06:00
|
|
|
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:43:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
43 | 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`
|
2017-02-25 21:55:43 -06:00
|
|
|
note: argument has type SomeStruct
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:43:10
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
43 | drop(s1);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2017-02-26 20:32:41 -06:00
|
|
|
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:44:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
44 | drop(s2);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:44:10
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
44 | drop(s2);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2017-02-26 20:32:41 -06:00
|
|
|
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:46:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
46 | drop(s4);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:46:10
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
46 | drop(s4);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2017-02-26 20:32:41 -06:00
|
|
|
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:49:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
49 | 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`
|
2017-02-25 21:55:43 -06:00
|
|
|
note: argument has type SomeStruct
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:49:12
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
49 | forget(s1);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2017-02-26 20:32:41 -06:00
|
|
|
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:50:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
50 | forget(s2);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:50:12
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
50 | forget(s2);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^
|
|
|
|
|
2017-02-26 20:32:41 -06:00
|
|
|
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:52:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
52 | forget(s4);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/drop_forget_copy.rs:52:12
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
52 | 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
|
|
|
|
|