rust/tests/ui/parser/regions-out-of-scope-slice.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
337 B
Plaintext
Raw Normal View History

error: borrow expressions cannot be annotated with lifetimes
--> $DIR/regions-out-of-scope-slice.rs:7:13
|
2019-03-09 06:03:44 -06:00
LL | x = &'blk [1,2,3];
| ^----^^^^^^^^
| |
| annotated with lifetime here
| help: remove the lifetime annotation
error: aborting due to previous error