Files
zig/test/cases/compile_errors/direct_struct_loop.zig
2023-06-19 12:34:42 -07:00

14 lines
222 B
Zig

const A = struct {
a: A,
};
export fn entry() usize {
return @sizeOf(A);
}
// error
// backend=stage2
// target=native
//
// :1:11: error: struct 'tmp.A' depends on itself
// :2:5: note: while checking this field