fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: calls to `std::mem::drop` with `std::mem::ManuallyDrop` instead of the inner value does nothing 2 --> $DIR/undropped_manually_drops.rs:10:5 3 | 4LL | drop(std::mem::ManuallyDrop::new(S)); 5 | ^^^^^------------------------------^ 6 | | 7 | argument has type `ManuallyDrop<S>` 8 | 9 = note: `#[deny(undropped_manually_drops)]` on by default 10help: use `std::mem::ManuallyDrop::into_inner` to get the inner value 11 | 12LL | drop(std::mem::ManuallyDrop::into_inner(std::mem::ManuallyDrop::new(S))); 13 | +++++++++++++++++++++++++++++++++++ + 14 15error: calls to `std::mem::drop` with `std::mem::ManuallyDrop` instead of the inner value does nothing 16 --> $DIR/undropped_manually_drops.rs:11:5 17 | 18LL | drop(manual1); 19 | ^^^^^-------^ 20 | | 21 | argument has type `ManuallyDrop<S>` 22 | 23help: use `std::mem::ManuallyDrop::into_inner` to get the inner value 24 | 25LL | drop(std::mem::ManuallyDrop::into_inner(manual1)); 26 | +++++++++++++++++++++++++++++++++++ + 27 28error: calls to `std::mem::drop` with `std::mem::ManuallyDrop` instead of the inner value does nothing 29 --> $DIR/undropped_manually_drops.rs:12:5 30 | 31LL | drop({ manual3 }); 32 | ^^^^^-----------^ 33 | | 34 | argument has type `ManuallyDrop<S>` 35 | 36help: use `std::mem::ManuallyDrop::into_inner` to get the inner value 37 | 38LL | drop(std::mem::ManuallyDrop::into_inner({ manual3 })); 39 | +++++++++++++++++++++++++++++++++++ + 40 41error: aborting due to 3 previous errors 42