mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Fix formatting
This commit is contained in:
parent
cb1c0b6849
commit
2da7f084fe
2 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,8 @@
|
|||
#![allow(unused)]
|
||||
fn foo<T: Drop>() {}
|
||||
fn bar<T>() where T: Drop {}
|
||||
fn bar<T>()
|
||||
where
|
||||
T: Drop,
|
||||
{
|
||||
}
|
||||
fn main() {}
|
||||
|
|
|
@ -7,10 +7,10 @@ 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:3:22
|
||||
--> $DIR/drop_bounds.rs:5:8
|
||||
|
|
||||
LL | fn bar<T>() where T: Drop {}
|
||||
| ^^^^
|
||||
LL | T: Drop,
|
||||
| ^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
Loading…
Reference in a new issue