1 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
2 --> $DIR/dyn-drop.rs:3:19
4 LL | fn foo(_: Box<dyn Drop>) {}
7 note: the lint level is defined here
8 --> $DIR/dyn-drop.rs:1:9
10 LL | #![deny(dyn_drop)]
13 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
14 --> $DIR/dyn-drop.rs:4:16
16 LL | fn bar(_: &dyn Drop) {}
19 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
20 --> $DIR/dyn-drop.rs:5:16
22 LL | fn baz(_: *mut Drop) {}
25 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
26 --> $DIR/dyn-drop.rs:7:15
28 LL | _x: Box<dyn Drop>
31 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
32 --> $DIR/dyn-drop.rs:14:16
34 LL | type T = dyn Drop;
37 error: aborting due to 5 previous errors