mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
26 lines
586 B
Text
26 lines
586 B
Text
error: usage of mem::forget on Drop type
|
|
--> $DIR/mem_forget.rs:16:5
|
|
|
|
|
16 | memstuff::forget(six);
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/mem_forget.rs:10:8
|
|
|
|
|
10 | #[deny(mem_forget)]
|
|
| ^^^^^^^^^^
|
|
|
|
error: usage of mem::forget on Drop type
|
|
--> $DIR/mem_forget.rs:20:5
|
|
|
|
|
20 | std::mem::forget(seven);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: usage of mem::forget on Drop type
|
|
--> $DIR/mem_forget.rs:24:5
|
|
|
|
|
24 | forgetSomething(eight);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|