2017-10-10 02:11:22 +00:00
|
|
|
error: cannot use a comma after the base struct
|
2019-01-06 15:33:05 +00:00
|
|
|
--> $DIR/struct-field-init-syntax.rs:11:9
|
2017-10-10 02:11:22 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | ..Foo::default(),
|
2017-10-10 02:11:22 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^- help: remove this comma
|
|
|
|
|
|
|
|
|
= note: the base struct must always be the last field
|
|
|
|
|
|
|
|
error: cannot use a comma after the base struct
|
2019-01-06 15:33:05 +00:00
|
|
|
--> $DIR/struct-field-init-syntax.rs:16:9
|
2017-10-10 02:11:22 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | ..Foo::default(),
|
2017-10-10 02:11:22 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^- help: remove this comma
|
|
|
|
|
|
|
|
|
= note: the base struct must always be the last field
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|