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