]>
Commit | Line | Data |
---|---|---|
f2b60f7d FG |
1 | error: struct fields are separated by `,` |
2 | --> $DIR/recover-field-semi.rs:2:13 | |
3 | | | |
2b03887a FG |
4 | LL | struct Foo { |
5 | | --- while parsing this struct | |
f2b60f7d FG |
6 | LL | foo: i32; |
7 | | ^ help: replace `;` with `,` | |
8 | ||
9 | error: union fields are separated by `,` | |
10 | --> $DIR/recover-field-semi.rs:7:13 | |
11 | | | |
2b03887a FG |
12 | LL | union Bar { |
13 | | --- while parsing this union | |
f2b60f7d FG |
14 | LL | foo: i32; |
15 | | ^ help: replace `;` with `,` | |
16 | ||
17 | error: struct fields are separated by `,` | |
18 | --> $DIR/recover-field-semi.rs:12:19 | |
19 | | | |
20 | LL | Qux { foo: i32; } | |
2b03887a FG |
21 | | --- ^ help: replace `;` with `,` |
22 | | | | |
23 | | while parsing this struct | |
f2b60f7d FG |
24 | |
25 | error: unions cannot have zero fields | |
26 | --> $DIR/recover-field-semi.rs:6:1 | |
27 | | | |
28 | LL | / union Bar { | |
29 | LL | | foo: i32; | |
30 | LL | | | |
31 | LL | | } | |
32 | | |_^ | |
33 | ||
34 | error: aborting due to 4 previous errors | |
35 |