diff options
| author | Michael Howell <michael@notriddle.com> | 2019-02-18 19:36:58 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2019-02-18 19:36:58 -0700 |
| commit | 2da7f084fe69349f664090cb375c94aaefcbf78d (patch) | |
| tree | 963bf9bd3fc3fee986ec5c6694d3764b51664aa3 | |
| parent | cb1c0b684919e620df59c5e8749d572b852b167c (diff) | |
| download | rust-2da7f084fe69349f664090cb375c94aaefcbf78d.tar.gz rust-2da7f084fe69349f664090cb375c94aaefcbf78d.zip | |
Fix formatting
| -rw-r--r-- | tests/ui/drop_bounds.rs | 6 | ||||
| -rw-r--r-- | tests/ui/drop_bounds.stderr | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/ui/drop_bounds.rs b/tests/ui/drop_bounds.rs index baa74037c1a..6d6a9dc0783 100644 --- a/tests/ui/drop_bounds.rs +++ b/tests/ui/drop_bounds.rs @@ -1,4 +1,8 @@ #![allow(unused)] fn foo<T: Drop>() {} -fn bar<T>() where T: Drop {} +fn bar<T>() +where + T: Drop, +{ +} fn main() {} diff --git a/tests/ui/drop_bounds.stderr b/tests/ui/drop_bounds.stderr index 15b6ea6a795..cc87913ecb1 100644 --- a/tests/ui/drop_bounds.stderr +++ b/tests/ui/drop_bounds.stderr @@ -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 |
