summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/keyword-fn-as-identifier.stderr
blob: 645efbcae71361111a6daefbb6c667d810d30d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: expected identifier, found keyword `fn`
  --> $DIR/keyword-fn-as-identifier.rs:4:9
   |
LL |     let fn = "foo";
   |         ^^ expected identifier, found keyword
   |
help: escape `fn` to use it as an identifier
   |
LL |     let r#fn = "foo";
   |         ++

error: aborting due to previous error