about summary refs log tree commit diff
path: root/tests/ui/parser/regions-out-of-scope-slice.stderr
blob: 838dcde2850c8767e9a92c2264dc8dfc5ee65d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
   |
LL -         x = &'blk [1,2,3];
LL +         x = &[1,2,3];
   |

error: aborting due to 1 previous error