mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-18 02:38:28 +00:00
20 lines
640 B
Text
20 lines
640 B
Text
|
error: the inner value of this ManuallyDrop will not be dropped
|
||
|
--> $DIR/undropped_manually_drops.rs:14:5
|
||
|
|
|
||
|
LL | drop(std::mem::ManuallyDrop::new(S));
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: `-D clippy::undropped-manually-drops` implied by `-D warnings`
|
||
|
= help: to drop a `ManuallyDrop<T>`, use std::mem::ManuallyDrop::drop
|
||
|
|
||
|
error: the inner value of this ManuallyDrop will not be dropped
|
||
|
--> $DIR/undropped_manually_drops.rs:15:5
|
||
|
|
|
||
|
LL | drop(manual1);
|
||
|
| ^^^^^^^^^^^^^
|
||
|
|
|
||
|
= help: to drop a `ManuallyDrop<T>`, use std::mem::ManuallyDrop::drop
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|