2019-08-27 06:04:48 -05:00
|
|
|
error: expected identifier, found keyword `pub`
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/keyword-pub-as-identifier.rs:4:9
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let pub = "foo";
|
2019-08-27 06:04:48 -05:00
|
|
|
| ^^^ expected identifier, found keyword
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2019-08-27 06:04:48 -05:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
|
|
|
LL | let r#pub = "foo";
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|