| 1 | const Foo = packed struct { |
| 2 | bar: (T: { |
| 3 | _ = @hasField(Foo, "bar"); |
| 4 | break :T void; |
| 5 | }), |
| 6 | }; |
| 7 | |
| 8 | comptime { |
| 9 | _ = @as(Foo, undefined); |
| 10 | } |
| 11 | |
| 12 | // error |
| 13 | // |
| 14 | // :3:23: error: type 'tmp.Foo' depends on itself for field query here |