summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/regions-out-of-scope-slice.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/regions-out-of-scope-slice.stderr')
-rw-r--r--src/test/ui/parser/regions-out-of-scope-slice.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/parser/regions-out-of-scope-slice.stderr b/src/test/ui/parser/regions-out-of-scope-slice.stderr
new file mode 100644
index 000000000..bbc657ffd
--- /dev/null
+++ b/src/test/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
+