]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/regions-out-of-scope-slice.stderr
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[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