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