summary refs log tree commit diff
path: root/src/test/ui/parser/removed-syntax-field-let.stderr
blob: d6e38be4869eb3fd6502655ec2c8ce4e0f60ea60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: expected identifier, found keyword `let`
  --> $DIR/removed-syntax-field-let.rs:2:5
   |
LL |     let foo: (),
   |     ^^^ expected identifier, found keyword
help: you can escape reserved keywords to use them as identifiers
   |
LL |     r#let foo: (),
   |     ^^^^^

error: expected `:`, found `foo`
  --> $DIR/removed-syntax-field-let.rs:2:9
   |
LL |     let foo: (),
   |         ^^^ expected `:`

error: aborting due to 2 previous errors