2017-10-09 21:11:22 -05:00
|
|
|
error: cannot use a comma after the base struct
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/struct-field-init-syntax.rs:8: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/struct-field-init-syntax.rs:13: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
|
|
|
|
|