mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 10:07:30 +00:00
deb586a0c6
(was merged as part of https://github.com/rust-lang/rust/pull/62782 )
17 lines
479 B
Plaintext
17 lines
479 B
Plaintext
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.
|
|
--> $DIR/drop_bounds.rs:5:8
|
|
|
|
|
LL | T: Drop,
|
|
| ^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|