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 --> tests/ui/forget_non_drop.rs:13:5
7 note: argument has type `main::Foo`
8 --> tests/ui/forget_non_drop.rs:13:12
12 = note: `-D clippy::forget-non-drop` implied by `-D warnings`
13 = help: to override `-D warnings` add `#[allow(clippy::forget_non_drop)]`
15 error: call to `std::mem::forget` with a value that does not implement `Drop`. Forgetting such a type is the same as dropping it
16 --> tests/ui/forget_non_drop.rs:25:5
18 LL | forget(Baz(Foo));
21 note: argument has type `main::Baz<main::Foo>`
22 --> tests/ui/forget_non_drop.rs:25:12
24 LL | forget(Baz(Foo));
27 error: aborting due to 2 previous errors