2cd0d14eb1
- Suggest raw ident escaping in all editions - Keep primary label in all cases
22 lines
692 B
Plaintext
22 lines
692 B
Plaintext
error: expected identifier, found keyword `true`
|
|
--> $DIR/issue-44406.rs:8:10
|
|
|
|
|
LL | foo!(true); //~ ERROR expected type, found keyword
|
|
| ^^^^ expected identifier, found keyword
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
LL | foo!(r#true); //~ ERROR expected type, found keyword
|
|
| ^^^^^^
|
|
|
|
error: expected type, found keyword `true`
|
|
--> $DIR/issue-44406.rs:8:10
|
|
|
|
|
LL | bar(baz: $rest)
|
|
| - help: try using a semicolon: `;`
|
|
...
|
|
LL | foo!(true); //~ ERROR expected type, found keyword
|
|
| ^^^^ expecting a type here because of type ascription
|
|
|
|
error: aborting due to 2 previous errors
|
|
|