From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/parser/regions-out-of-scope-slice.stderr | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/ui/parser/regions-out-of-scope-slice.stderr (limited to 'tests/ui/parser/regions-out-of-scope-slice.stderr') diff --git a/tests/ui/parser/regions-out-of-scope-slice.stderr b/tests/ui/parser/regions-out-of-scope-slice.stderr new file mode 100644 index 000000000..bbc657ffd --- /dev/null +++ b/tests/ui/parser/regions-out-of-scope-slice.stderr @@ -0,0 +1,11 @@ +error: borrow expressions cannot be annotated with lifetimes + --> $DIR/regions-out-of-scope-slice.rs:7:13 + | +LL | x = &'blk [1,2,3]; + | ^----^^^^^^^^ + | | + | annotated with lifetime here + | help: remove the lifetime annotation + +error: aborting due to previous error + -- cgit v1.2.3