]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/regions-out-of-scope-slice.stderr
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
[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