mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
692bc344d5
Go over all structured parser suggestions and make them verbose style. When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
17 lines
395 B
Plaintext
17 lines
395 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
|
|
|
|
|
LL - x = &'blk [1,2,3];
|
|
LL + x = &[1,2,3];
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|