rust/tests/ui/drop_bounds.stderr

17 lines
477 B
Plaintext
Raw Normal View History

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>() {}
| ^^^^
|
= note: `#[deny(clippy::drop_bounds)]` on by default
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-19 02:36:58 +00:00
LL | T: Drop,
| ^^^^
error: aborting due to 2 previous errors