fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
748 B23 linesraw
1error: expected one of `,`, `.`, `?`, `}`, or an operator, found `second`
2  --> $DIR/struct-initializer-comma.rs:10:9
3   |
4LL |     let a = Foo {
5   |             --- while parsing this struct
6LL |
7LL |         first: true
8   |                    -
9   |                    |
10   |                    expected one of `,`, `.`, `?`, `}`, or an operator
11   |                    help: try adding a comma: `,`
12LL |         second: 25
13   |         ^^^^^^ unexpected token
14
15error[E0063]: missing field `second` in initializer of `Foo`
16  --> $DIR/struct-initializer-comma.rs:7:13
17   |
18LL |     let a = Foo {
19   |             ^^^ missing `second`
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0063`.