2017-10-10 04:11:22 +02:00
|
|
|
error: cannot use a comma after the base struct
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/struct-field-init-syntax.rs:8:9
|
2017-10-10 04:11:22 +02:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | ..Foo::default(),
|
2017-10-10 04:11:22 +02: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 08:56:47 -07:00
|
|
|
--> $DIR/struct-field-init-syntax.rs:13:9
|
2017-10-10 04:11:22 +02:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | ..Foo::default(),
|
2017-10-10 04:11:22 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^- help: remove this comma
|
|
|
|
|
|
|
|
|
= note: the base struct must always be the last field
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|