]> git.lizzy.rs Git - rust.git/blob - tests/ui/undropped_manually_drops.stderr
Addition `manual_map` test for `unsafe` blocks
[rust.git] / tests / ui / undropped_manually_drops.stderr
1 error: the inner value of this ManuallyDrop will not be dropped
2   --> $DIR/undropped_manually_drops.rs:14:5
3    |
4 LL |     drop(std::mem::ManuallyDrop::new(S));
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::undropped-manually-drops` implied by `-D warnings`
8    = help: to drop a `ManuallyDrop<T>`, use std::mem::ManuallyDrop::drop
9
10 error: the inner value of this ManuallyDrop will not be dropped
11   --> $DIR/undropped_manually_drops.rs:15:5
12    |
13 LL |     drop(manual1);
14    |     ^^^^^^^^^^^^^
15    |
16    = help: to drop a `ManuallyDrop<T>`, use std::mem::ManuallyDrop::drop
17
18 error: aborting due to 2 previous errors
19