2020-10-28 22:36:07 +00:00
|
|
|
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));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: to drop a `ManuallyDrop<T>`, use std::mem::ManuallyDrop::drop
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::undropped-manually-drops` implied by `-D warnings`
|
2020-10-28 22:36:07 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|