rust/src/test/ui/structs/struct-field-init-syntax.stderr

19 lines
533 B
Plaintext
Raw Normal View History

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
|
2018-02-22 18:42:32 -06:00
LL | ..Foo::default(),
| ^^^^^^^^^^^^^^^^- 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
|
2018-02-22 18:42:32 -06:00
LL | ..Foo::default(),
| ^^^^^^^^^^^^^^^^- help: remove this comma
|
= note: the base struct must always be the last field
error: aborting due to 2 previous errors