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