]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/removed-syntax-field-let-2.stderr
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / parser / removed-syntax-field-let-2.stderr
1 error: expected identifier, found keyword `let`
2   --> $DIR/removed-syntax-field-let-2.rs:2:5
3    |
4 LL |     let x: i32,
5    |     ^^^-
6    |     |
7    |     expected identifier, found keyword
8    |     help: remove this `let` keyword
9    |
10    = note: the `let` keyword is not allowed in `struct` fields
11    = note: see <https://doc.rust-lang.org/book/ch05-01-defining-structs.html> for more information
12
13 error: expected identifier, found keyword `let`
14   --> $DIR/removed-syntax-field-let-2.rs:4:5
15    |
16 LL |     let y: i32,
17    |     ^^^-
18    |     |
19    |     expected identifier, found keyword
20    |     help: remove this `let` keyword
21    |
22    = note: the `let` keyword is not allowed in `struct` fields
23    = note: see <https://doc.rust-lang.org/book/ch05-01-defining-structs.html> for more information
24
25 error[E0063]: missing fields `x` and `y` in initializer of `Foo`
26   --> $DIR/removed-syntax-field-let-2.rs:9:13
27    |
28 LL |     let _ = Foo {
29    |             ^^^ missing `x` and `y`
30
31 error: aborting due to 3 previous errors
32
33 For more information about this error, try `rustc --explain E0063`.