mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 18:34:08 +00:00

Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
14 lines
338 B
Plaintext
14 lines
338 B
Plaintext
error: expected identifier, found keyword `for`
|
|
--> $DIR/keyword-for-as-identifier.rs:4:9
|
|
|
|
|
LL | let for = "foo";
|
|
| ^^^ expected identifier, found keyword
|
|
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
LL | let r#for = "foo";
|
|
| ^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|