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.
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:33:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
33 | drop(s1);
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D drop-copy` implied by `-D warnings`
|
2017-02-26 03:55:43 +00:00
|
|
|
note: argument has type SomeStruct
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:33:10
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
33 | drop(s1);
|
|
|
|
| ^^
|
|
|
|
|
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.
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:34:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
34 | drop(s2);
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D drop-copy` implied by `-D warnings`
|
2017-02-26 03:55:43 +00:00
|
|
|
note: argument has type SomeStruct
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:34:10
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
34 | drop(s2);
|
|
|
|
| ^^
|
|
|
|
|
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.
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:36:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
36 | drop(s4);
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D drop-copy` implied by `-D warnings`
|
2017-02-26 03:55:43 +00:00
|
|
|
note: argument has type SomeStruct
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:36:10
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
36 | drop(s4);
|
|
|
|
| ^^
|
|
|
|
|
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.
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:39:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
39 | forget(s1);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D forget-copy` implied by `-D warnings`
|
2017-02-26 03:55:43 +00:00
|
|
|
note: argument has type SomeStruct
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:39:12
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
39 | forget(s1);
|
|
|
|
| ^^
|
|
|
|
|
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.
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:40:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
40 | forget(s2);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D forget-copy` implied by `-D warnings`
|
2017-02-26 03:55:43 +00:00
|
|
|
note: argument has type SomeStruct
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:40:12
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
40 | forget(s2);
|
|
|
|
| ^^
|
|
|
|
|
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.
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:42:5
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
42 | forget(s4);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D forget-copy` implied by `-D warnings`
|
2017-02-26 03:55:43 +00:00
|
|
|
note: argument has type SomeStruct
|
2017-05-17 15:51:35 +00:00
|
|
|
--> drop_forget_copy.rs:42:12
|
2017-02-26 03:55:43 +00:00
|
|
|
|
|
|
|
|
42 | forget(s4);
|
|
|
|
| ^^
|
|
|
|
|
2017-05-26 07:21:54 +00:00
|
|
|
error: aborting due to previous error(s)
|
2017-02-26 03:55:43 +00:00
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|