summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/regions-out-of-scope-slice.stderr
blob: bbc657ffd614c40cac5689a7cca84156a72536c8 (plain)
1
2
3
4
5
6
7
8
9
10
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