From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/static/static-lifetime.stderr | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/ui/static/static-lifetime.stderr (limited to 'tests/ui/static/static-lifetime.stderr') diff --git a/tests/ui/static/static-lifetime.stderr b/tests/ui/static/static-lifetime.stderr new file mode 100644 index 000000000..4af3370c7 --- /dev/null +++ b/tests/ui/static/static-lifetime.stderr @@ -0,0 +1,16 @@ +error[E0478]: lifetime bound not satisfied + --> $DIR/static-lifetime.rs:3:20 + | +LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {} + | ^^^^^^^^^ + | +note: lifetime parameter instantiated with the lifetime `'a` as defined here + --> $DIR/static-lifetime.rs:3:6 + | +LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {} + | ^^ + = note: but lifetime parameter must outlive the static lifetime + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0478`. -- cgit v1.2.3