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

error: aborting due to previous error