fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes 2 --> $DIR/drop_non_drop.rs:22:5 3 | 4LL | drop(Foo); 5 | ^^^^^^^^^ 6 | 7note: argument has type `main::Foo` 8 --> $DIR/drop_non_drop.rs:22:10 9 | 10LL | drop(Foo); 11 | ^^^ 12 = note: `-D clippy::drop-non-drop` implied by `-D warnings` 13 = help: to override `-D warnings` add `#[allow(clippy::drop_non_drop)]` 14 15error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes 16 --> $DIR/drop_non_drop.rs:38:5 17 | 18LL | drop(Baz(Foo)); 19 | ^^^^^^^^^^^^^^ 20 | 21note: argument has type `main::Baz<main::Foo>` 22 --> $DIR/drop_non_drop.rs:38:10 23 | 24LL | drop(Baz(Foo)); 25 | ^^^^^^^^ 26 27error: aborting due to 2 previous errors 28