2020-02-15 03:28:13 +00:00
|
|
|
error: expected one of `,`, `.`, `?`, `}`, or an operator, found `second`
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/struct-initializer-comma.rs:12:9
|
2020-02-15 03:28:13 +00:00
|
|
|
|
|
2020-07-02 05:32:12 +00:00
|
|
|
LL | let _ = Foo {
|
2020-02-15 03:28:13 +00:00
|
|
|
| --- 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`
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/struct-initializer-comma.rs:9:13
|
2020-02-15 03:28:13 +00:00
|
|
|
|
|
2020-07-02 05:32:12 +00:00
|
|
|
LL | let _ = Foo {
|
2020-02-15 03:28:13 +00:00
|
|
|
| ^^^ missing `second`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0063`.
|