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