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