| 1 | const S = struct { |
| 2 | const foo = 2; |
| 3 | const bar = 2; |
| 4 | const baz = 2; |
| 5 | a: struct { |
| 6 | a: u32, |
| 7 | b: u32, |
| 8 | }, |
| 9 | const foo1 = 2; |
| 10 | const bar1 = 2; |
| 11 | const baz1 = 2; |
| 12 | b: usize, |
| 13 | }; |
| 14 | comptime { |
| 15 | _ = S; |
| 16 | } |
| 17 | |
| 18 | // error |
| 19 | // |
| 20 | // :9:5: error: declarations are not allowed between container fields |
| 21 | // :5:5: note: field before declarations here |
| 22 | // :12:5: note: field after declarations here |