1
Fork 0
rust/src/test/ui/parser/macro-keyword.stderr

13 lines
319 B
Text
Raw Normal View History

2018-10-20 23:36:17 +03:00
error: expected identifier, found reserved keyword `macro`
--> $DIR/macro-keyword.rs:1:4
2018-10-20 23:36:17 +03:00
|
2019-03-09 15:03:44 +03:00
LL | fn macro() {
2018-10-20 23:36:17 +03:00
| ^^^^^ expected identifier, found reserved keyword
help: you can escape reserved keywords to use them as identifiers
|
2019-03-09 15:03:44 +03:00
LL | fn r#macro() {
| ^^^^^^^
2018-10-20 23:36:17 +03:00
error: aborting due to previous error