2cd0d14eb1
- Suggest raw ident escaping in all editions - Keep primary label in all cases
19 lines
681 B
Plaintext
19 lines
681 B
Plaintext
error: expected identifier, found keyword `loop`
|
|
--> $DIR/lifetime_starts_expressions.rs:6:26
|
|
|
|
|
LL | loop { break 'label: loop { break 'label 42; }; }
|
|
| ^^^^ expected identifier, found keyword
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
LL | loop { break 'label: r#loop { break 'label 42; }; }
|
|
| ^^^^^^
|
|
|
|
error: expected type, found keyword `loop`
|
|
--> $DIR/lifetime_starts_expressions.rs:6:26
|
|
|
|
|
LL | loop { break 'label: loop { break 'label 42; }; }
|
|
| ^^^^ expecting a type here because of type ascription
|
|
|
|
error: aborting due to 2 previous errors
|
|
|