Fix formatting

This commit is contained in:
Michael Howell 2019-02-18 19:36:58 -07:00
parent cb1c0b6849
commit 2da7f084fe
2 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,8 @@
#![allow(unused)]
fn foo<T: Drop>() {}
fn bar<T>() where T: Drop {}
fn bar<T>()
where
T: Drop,
{
}
fn main() {}

View file

@ -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