2017-02-27 03:32:41 +01:00
|
|
|
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
|
2017-02-26 04:55:43 +01:00
|
|
|
--> $DIR/drop_forget_copy.rs:33:5
|
|
|
|
|
|
|
|
|
33 | drop(s1);
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/drop_forget_copy.rs:4:9
|
|
|
|
|
|
|
|
|
4 | #![deny(drop_copy, forget_copy)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
note: argument has type SomeStruct
|
|
|
|
--> $DIR/drop_forget_copy.rs:33:10
|
|
|
|
|
|
|
|
|
33 | drop(s1);
|
|
|
|
| ^^
|
|
|
|
|
2017-02-27 03:32:41 +01:00
|
|
|
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
|
2017-02-26 04:55:43 +01:00
|
|
|
--> $DIR/drop_forget_copy.rs:34:5
|
|
|
|
|
|
|
|
|
34 | drop(s2);
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
|
|
|
--> $DIR/drop_forget_copy.rs:34:10
|
|
|
|
|
|
|
|
|
34 | drop(s2);
|
|
|
|
| ^^
|
|
|
|
|
2017-02-27 03:32:41 +01:00
|
|
|
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
|
2017-02-26 04:55:43 +01:00
|
|
|
--> $DIR/drop_forget_copy.rs:36:5
|
|
|
|
|
|
|
|
|
36 | drop(s4);
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
|
|
|
--> $DIR/drop_forget_copy.rs:36:10
|
|
|
|
|
|
|
|
|
36 | drop(s4);
|
|
|
|
| ^^
|
|
|
|
|
2017-02-27 03:32:41 +01:00
|
|
|
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
|
2017-02-26 04:55:43 +01:00
|
|
|
--> $DIR/drop_forget_copy.rs:39:5
|
|
|
|
|
|
|
|
|
39 | forget(s1);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/drop_forget_copy.rs:4:20
|
|
|
|
|
|
|
|
|
4 | #![deny(drop_copy, forget_copy)]
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
note: argument has type SomeStruct
|
|
|
|
--> $DIR/drop_forget_copy.rs:39:12
|
|
|
|
|
|
|
|
|
39 | forget(s1);
|
|
|
|
| ^^
|
|
|
|
|
2017-02-27 03:32:41 +01:00
|
|
|
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
|
2017-02-26 04:55:43 +01:00
|
|
|
--> $DIR/drop_forget_copy.rs:40:5
|
|
|
|
|
|
|
|
|
40 | forget(s2);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
|
|
|
--> $DIR/drop_forget_copy.rs:40:12
|
|
|
|
|
|
|
|
|
40 | forget(s2);
|
|
|
|
| ^^
|
|
|
|
|
2017-02-27 03:32:41 +01:00
|
|
|
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
|
2017-02-26 04:55:43 +01:00
|
|
|
--> $DIR/drop_forget_copy.rs:42:5
|
|
|
|
|
|
|
|
|
42 | forget(s4);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type SomeStruct
|
|
|
|
--> $DIR/drop_forget_copy.rs:42:12
|
|
|
|
|
|
|
|
|
42 | forget(s4);
|
|
|
|
| ^^
|
|
|
|
|
2017-02-27 03:32:41 +01:00
|
|
|
error: aborting due to 6 previous errors
|
2017-02-26 04:55:43 +01:00
|
|
|
|