]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/regions-out-of-scope-slice.stderr
Merge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07
[rust.git] / src / test / ui / parser / regions-out-of-scope-slice.stderr
1 error: borrow expressions cannot be annotated with lifetimes
2   --> $DIR/regions-out-of-scope-slice.rs:7:13
3    |
4 LL |         x = &'blk [1,2,3];
5    |             ^----^^^^^^^^
6    |              |
7    |              annotated with lifetime here
8    |              help: remove the lifetime annotation
9
10 error: aborting due to previous error
11