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

error: aborting due to previous error