summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/regions-out-of-scope-slice.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/regions-out-of-scope-slice.stderr')
-rw-r--r--tests/ui/parser/regions-out-of-scope-slice.stderr11
1 files changed, 11 insertions, 0 deletions
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
+