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

error: aborting due to previous error