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