1 error: call to `std::mem::forget` with a value that does not implement `Drop`. Forgetting such a type is the same as dropping it
2 --> $DIR/forget_non_drop.rs:13:5
7 = note: `-D clippy::forget-non-drop` implied by `-D warnings`
8 note: argument has type `main::Foo`
9 --> $DIR/forget_non_drop.rs:13:12
14 error: call to `std::mem::forget` with a value that does not implement `Drop`. Forgetting such a type is the same as dropping it
15 --> $DIR/forget_non_drop.rs:24:5
17 LL | forget(Baz(Foo));
20 note: argument has type `main::Baz<main::Foo>`
21 --> $DIR/forget_non_drop.rs:24:12
23 LL | forget(Baz(Foo));
26 error: aborting due to 2 previous errors