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