| 1 | const S1 = struct { |
| 2 | a: S2, |
| 3 | }; |
| 4 | const S2 = struct { |
| 5 | b: fn () void, |
| 6 | }; |
| 7 | pub export fn entry() void { |
| 8 | var s: S1 = undefined; |
| 9 | _ = &s; |
| 10 | } |
| 11 | |
| 12 | // error |
| 13 | // |
| 14 | // :8:12: error: variable of type 'tmp.S1' must be const or comptime |
| 15 | // :2:8: note: struct requires comptime because of this field |
| 16 | // :5:8: note: struct requires comptime because of this field |
| 17 | // :5:8: note: use '*const fn () void' for a function pointer type |