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