2020-07-23 18:05:42 +00: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-17 04:28:16 +00:00
|
|
|
--> $DIR/drop_bounds.rs:2:11
|
|
|
|
|
|
|
|
|
LL | fn foo<T: Drop>() {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
2019-07-18 22:35:32 +00:00
|
|
|
= note: `#[deny(clippy::drop_bounds)]` on by default
|
2019-02-17 04:28:16 +00:00
|
|
|
|
2020-07-23 18:05:42 +00: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-19 02:36:58 +00:00
|
|
|
--> $DIR/drop_bounds.rs:5:8
|
2019-02-17 04:28:16 +00:00
|
|
|
|
|
2019-02-19 02:36:58 +00:00
|
|
|
LL | T: Drop,
|
|
|
|
| ^^^^
|
2019-02-17 04:28:16 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|