Skip to content

Commit 2da7f08

Browse files
committed
Fix formatting
1 parent cb1c0b6 commit 2da7f08

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/ui/drop_bounds.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#![allow(unused)]
22
fn foo<T: Drop>() {}
3-
fn bar<T>() where T: Drop {}
3+
fn bar<T>()
4+
where
5+
T: Drop,
6+
{
7+
}
48
fn main() {}

tests/ui/drop_bounds.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ LL | fn foo<T: Drop>() {}
77
= note: #[deny(clippy::drop_bounds)] on by default
88

99
error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
10-
--> $DIR/drop_bounds.rs:3:22
10+
--> $DIR/drop_bounds.rs:5:8
1111
|
12-
LL | fn bar<T>() where T: Drop {}
13-
| ^^^^
12+
LL | T: Drop,
13+
| ^^^^
1414

1515
error: aborting due to 2 previous errors
1616

0 commit comments

Comments
 (0)