From 054009d17eef7355571fe8796d14e17b77cae825 Mon Sep 17 00:00:00 2001 From: Deadbeef Date: Tue, 28 Mar 2023 08:40:37 +0000 Subject: [PATCH] fix long line --- .../const-drop-fail-2.precise.stderr | 20 +++++++++---------- .../const-drop-fail-2.rs | 8 +++++--- .../const-drop-fail-2.stock.stderr | 20 +++++++++---------- 3 files changed, 25 insertions(+), 23 deletions(-) diff --git a/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.precise.stderr b/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.precise.stderr index dd35501faecf1..bcdc80f82f82e 100644 --- a/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.precise.stderr +++ b/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.precise.stderr @@ -1,13 +1,13 @@ error[E0277]: the trait bound `NonTrivialDrop: ~const A` is not satisfied --> $DIR/const-drop-fail-2.rs:31:23 | -LL | const _: () = check::>(ConstDropImplWithBounds(PhantomData)); +LL | const _: () = check::>( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `~const A` is not implemented for `NonTrivialDrop` | note: the trait `A` is implemented for `NonTrivialDrop`, but that implementation is not `const` --> $DIR/const-drop-fail-2.rs:31:23 | -LL | const _: () = check::>(ConstDropImplWithBounds(PhantomData)); +LL | const _: () = check::>( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `ConstDropImplWithBounds` --> $DIR/const-drop-fail-2.rs:21:35 @@ -16,16 +16,16 @@ LL | struct ConstDropImplWithBounds(PhantomData); | ^^^^^^^^ required by this bound in `ConstDropImplWithBounds` error[E0277]: the trait bound `NonTrivialDrop: ~const A` is not satisfied - --> $DIR/const-drop-fail-2.rs:31:64 + --> $DIR/const-drop-fail-2.rs:33:5 | -LL | const _: () = check::>(ConstDropImplWithBounds(PhantomData)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `~const A` is not implemented for `NonTrivialDrop` +LL | ConstDropImplWithBounds(PhantomData) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `~const A` is not implemented for `NonTrivialDrop` | note: the trait `A` is implemented for `NonTrivialDrop`, but that implementation is not `const` - --> $DIR/const-drop-fail-2.rs:31:64 + --> $DIR/const-drop-fail-2.rs:33:5 | -LL | const _: () = check::>(ConstDropImplWithBounds(PhantomData)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +LL | ConstDropImplWithBounds(PhantomData) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `ConstDropImplWithBounds` --> $DIR/const-drop-fail-2.rs:21:35 | @@ -33,13 +33,13 @@ LL | struct ConstDropImplWithBounds(PhantomData); | ^^^^^^^^ required by this bound in `ConstDropImplWithBounds` error[E0367]: `Drop` impl requires `T: ~const A` but the struct it is implemented for does not - --> $DIR/const-drop-fail-2.rs:37:9 + --> $DIR/const-drop-fail-2.rs:39:9 | LL | impl const Drop for ConstDropImplWithNonConstBounds { | ^^^^^^^^ | note: the implementor must specify the same requirement - --> $DIR/const-drop-fail-2.rs:35:1 + --> $DIR/const-drop-fail-2.rs:37:1 | LL | struct ConstDropImplWithNonConstBounds(PhantomData); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.rs b/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.rs index 8d7212dfe70c8..6a252c5d37bac 100644 --- a/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.rs +++ b/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.rs @@ -28,9 +28,11 @@ impl const Drop for ConstDropImplWithBounds { const fn check(_: T) {} -const _: () = check::>(ConstDropImplWithBounds(PhantomData)); -//~^ ERROR the trait bound -//~| ERROR the trait bound +const _: () = check::>( + //~^ ERROR the trait bound + ConstDropImplWithBounds(PhantomData) + //~^ ERROR the trait bound +); struct ConstDropImplWithNonConstBounds(PhantomData); diff --git a/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.stock.stderr b/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.stock.stderr index dd35501faecf1..bcdc80f82f82e 100644 --- a/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.stock.stderr +++ b/tests/ui/rfc-2632-const-trait-impl/const-drop-fail-2.stock.stderr @@ -1,13 +1,13 @@ error[E0277]: the trait bound `NonTrivialDrop: ~const A` is not satisfied --> $DIR/const-drop-fail-2.rs:31:23 | -LL | const _: () = check::>(ConstDropImplWithBounds(PhantomData)); +LL | const _: () = check::>( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `~const A` is not implemented for `NonTrivialDrop` | note: the trait `A` is implemented for `NonTrivialDrop`, but that implementation is not `const` --> $DIR/const-drop-fail-2.rs:31:23 | -LL | const _: () = check::>(ConstDropImplWithBounds(PhantomData)); +LL | const _: () = check::>( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `ConstDropImplWithBounds` --> $DIR/const-drop-fail-2.rs:21:35 @@ -16,16 +16,16 @@ LL | struct ConstDropImplWithBounds(PhantomData); | ^^^^^^^^ required by this bound in `ConstDropImplWithBounds` error[E0277]: the trait bound `NonTrivialDrop: ~const A` is not satisfied - --> $DIR/const-drop-fail-2.rs:31:64 + --> $DIR/const-drop-fail-2.rs:33:5 | -LL | const _: () = check::>(ConstDropImplWithBounds(PhantomData)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `~const A` is not implemented for `NonTrivialDrop` +LL | ConstDropImplWithBounds(PhantomData) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `~const A` is not implemented for `NonTrivialDrop` | note: the trait `A` is implemented for `NonTrivialDrop`, but that implementation is not `const` - --> $DIR/const-drop-fail-2.rs:31:64 + --> $DIR/const-drop-fail-2.rs:33:5 | -LL | const _: () = check::>(ConstDropImplWithBounds(PhantomData)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +LL | ConstDropImplWithBounds(PhantomData) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `ConstDropImplWithBounds` --> $DIR/const-drop-fail-2.rs:21:35 | @@ -33,13 +33,13 @@ LL | struct ConstDropImplWithBounds(PhantomData); | ^^^^^^^^ required by this bound in `ConstDropImplWithBounds` error[E0367]: `Drop` impl requires `T: ~const A` but the struct it is implemented for does not - --> $DIR/const-drop-fail-2.rs:37:9 + --> $DIR/const-drop-fail-2.rs:39:9 | LL | impl const Drop for ConstDropImplWithNonConstBounds { | ^^^^^^^^ | note: the implementor must specify the same requirement - --> $DIR/const-drop-fail-2.rs:35:1 + --> $DIR/const-drop-fail-2.rs:37:1 | LL | struct ConstDropImplWithNonConstBounds(PhantomData); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^