mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
24 lines
748 B
Plaintext
24 lines
748 B
Plaintext
|
error: expected one of `,`, `.`, `?`, `}`, or an operator, found `second`
|
||
|
--> $DIR/struct-initializer-comma.rs:10:9
|
||
|
|
|
||
|
LL | let a = Foo {
|
||
|
| --- while parsing this struct
|
||
|
LL |
|
||
|
LL | first: true
|
||
|
| -
|
||
|
| |
|
||
|
| expected one of `,`, `.`, `?`, `}`, or an operator
|
||
|
| help: try adding a comma: `,`
|
||
|
LL | second: 25
|
||
|
| ^^^^^^ unexpected token
|
||
|
|
||
|
error[E0063]: missing field `second` in initializer of `Foo`
|
||
|
--> $DIR/struct-initializer-comma.rs:7:13
|
||
|
|
|
||
|
LL | let a = Foo {
|
||
|
| ^^^ missing `second`
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0063`.
|