From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/traits/inductive-overflow/lifetime.stderr | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/ui/traits/inductive-overflow/lifetime.stderr (limited to 'tests/ui/traits/inductive-overflow/lifetime.stderr') diff --git a/tests/ui/traits/inductive-overflow/lifetime.stderr b/tests/ui/traits/inductive-overflow/lifetime.stderr new file mode 100644 index 000000000..357e59991 --- /dev/null +++ b/tests/ui/traits/inductive-overflow/lifetime.stderr @@ -0,0 +1,24 @@ +error[E0275]: overflow evaluating the requirement `X>: NotAuto` + --> $DIR/lifetime.rs:29:5 + | +LL | is_send::>>(); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + | +note: required for `Box>>` to implement `NotAuto` + --> $DIR/lifetime.rs:18:18 + | +LL | impl NotAuto for Box {} + | ------- ^^^^^^^ ^^^^^^ + | | + | unsatisfied trait bound introduced here + = note: 3 redundant requirements hidden + = note: required for `X>` to implement `NotAuto` +note: required by a bound in `is_send` + --> $DIR/lifetime.rs:23:15 + | +LL | fn is_send() {} + | ^^^^^^^ required by this bound in `is_send` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0275`. -- cgit v1.2.3