| 1 | const E = enum { |
| 2 | *u32, |
| 3 | }; |
| 4 | const U = union { |
| 5 | *u32, |
| 6 | }; |
| 7 | const S = struct { |
| 8 | a: u32, |
| 9 | *u32, |
| 10 | }; |
| 11 | const T = struct { |
| 12 | u32, |
| 13 | []const u8, |
| 14 | |
| 15 | const a = 1; |
| 16 | }; |
| 17 | |
| 18 | // error |
| 19 | // |
| 20 | // :2:5: error: enum field missing name |
| 21 | // :5:5: error: union field missing name |
| 22 | // :8:5: error: tuple field has a name |
| 23 | // :15:5: error: tuple declarations cannot contain declarations |
| 24 | // :12:5: note: tuple field here |