summary refs log tree commit diff
path: root/src/test/ui/parser/macro-keyword.stderr
blob: 22f3ccd0de6fb6fb625a29834f466f1da41137c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: expected identifier, found reserved keyword `macro`
  --> $DIR/macro-keyword.rs:1:4
   |
LL | fn macro() {
   |    ^^^^^ expected identifier, found reserved keyword
   |
help: you can escape reserved keywords to use them as identifiers
   |
LL | fn r#macro() {
   |    ~~~~~~~

error: aborting due to previous error