summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/keyword-fn-as-identifier.stderr
blob: 32fff1a6189f8fb503acd032f2b1f5a0a744fe1e (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 1 previous error