summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/removed-syntax-field-let.stderr
blob: 9bc18dabd6ead99511954f1543385db52f54e1bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: expected identifier, found keyword `let`
  --> $DIR/removed-syntax-field-let.rs:2:5
   |
LL |     let foo: (),
   |     ^^^-
   |     |
   |     expected identifier, found keyword
   |     help: remove this `let` keyword
   |
   = note: the `let` keyword is not allowed in `struct` fields
   = note: see <https://doc.rust-lang.org/book/ch05-01-defining-structs.html> for more information

error: aborting due to previous error