2019-02-17 05:28:16 +01:00
|
|
|
error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
|
|
|
|
--> $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
|
|
|
|
|
|
|
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
|
|
|
|
|