summary refs log tree commit diff
path: root/src/test/ui/parser/removed-syntax-field-let.stderr
blob: 0d489beae123aca8cd600a1b0547db2d651796c0 (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:4: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:4:9
   |
LL |     let foo: (),
   |         ^^^ expected `:`

error: aborting due to 2 previous errors