2017-02-07 21:05:30 +01:00
|
|
|
error: usage of mem::forget on Drop type
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/mem_forget.rs:18:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-26 04:55:43 +01:00
|
|
|
18 | memstuff::forget(six);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: `-D mem-forget` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: usage of mem::forget on Drop type
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/mem_forget.rs:21:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 15:30:44 +02:00
|
|
|
21 | std::mem::forget(seven);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: usage of mem::forget on Drop type
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/mem_forget.rs:24:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 15:30:44 +02:00
|
|
|
24 | forgetSomething(eight);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|