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
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2022-01-27 16:53:39 -06:00
|
|
|
help: escape `fn` to use it as an identifier
|
2019-08-27 06:04:48 -05:00
|
|
|
|
|
|
|
|
LL | let r#fn = "foo";
|
2022-01-27 16:53:39 -06:00
|
|
|
| ++
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|