mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
12 lines
337 B
Plaintext
12 lines
337 B
Plaintext
error: borrow expressions cannot be annotated with lifetimes
|
|
--> $DIR/regions-out-of-scope-slice.rs:7:13
|
|
|
|
|
LL | x = &'blk [1,2,3];
|
|
| ^----^^^^^^^^
|
|
| |
|
|
| annotated with lifetime here
|
|
| help: remove the lifetime annotation
|
|
|
|
error: aborting due to previous error
|
|
|