2020-07-23 13:05:42 -05:00
|
|
|
error: bounds of the form `T: Drop` are useless, use `std::mem::needs_drop` to detect if a type has drop glue
|
2019-02-16 22:28:16 -06:00
|
|
|
--> $DIR/drop_bounds.rs:2:11
|
|
|
|
|
|
|
|
|
LL | fn foo<T: Drop>() {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
2019-07-18 17:35:32 -05:00
|
|
|
= note: `#[deny(clippy::drop_bounds)]` on by default
|
2019-02-16 22:28:16 -06:00
|
|
|
|
2020-07-23 13:05:42 -05:00
|
|
|
error: bounds of the form `T: Drop` are useless, use `std::mem::needs_drop` to detect if a type has drop glue
|
2019-02-18 20:36:58 -06:00
|
|
|
--> $DIR/drop_bounds.rs:5:8
|
2019-02-16 22:28:16 -06:00
|
|
|
|
|
2019-02-18 20:36:58 -06:00
|
|
|
LL | T: Drop,
|
|
|
|
| ^^^^
|
2019-02-16 22:28:16 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|