mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
19 lines
534 B
Plaintext
19 lines
534 B
Plaintext
error: cannot use a comma after the base struct
|
|
--> $DIR/struct-field-init-syntax.rs:11:9
|
|
|
|
|
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
|
|
--> $DIR/struct-field-init-syntax.rs:16:9
|
|
|
|
|
LL | ..Foo::default(),
|
|
| ^^^^^^^^^^^^^^^^- help: remove this comma
|
|
|
|
|
= note: the base struct must always be the last field
|
|
|
|
error: aborting due to 2 previous errors
|
|
|