about summary refs log tree commit diff
path: root/tests/ui/structs/struct-field-init-syntax.stderr
blob: 66098d5f610ed9fe1691c0a7772b442c3363b99f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
error: cannot use a comma after the base struct
  --> $DIR/struct-field-init-syntax.rs:11:9
   |
LL |         ..Foo::default(),
   |         ^^^^^^^^^^^^^^^^
   |
   = note: the base struct must always be the last field
help: remove this comma
   |
LL -         ..Foo::default(),
LL +         ..Foo::default()
   |

error: cannot use a comma after the base struct
  --> $DIR/struct-field-init-syntax.rs:16:9
   |
LL |         ..Foo::default(),
   |         ^^^^^^^^^^^^^^^^
   |
   = note: the base struct must always be the last field
help: remove this comma
   |
LL -         ..Foo::default(),
LL +         ..Foo::default()
   |

error: aborting due to 2 previous errors