blob: 5d8f6af166bd470a9ff7de936129f0085cf99392 (
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 1 previous error
|