mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-08 06:44:27 +00:00
21 lines
368 B
Zig
21 lines
368 B
Zig
const A = struct {
|
|
b: B,
|
|
};
|
|
const B = struct {
|
|
c: C,
|
|
};
|
|
const C = struct {
|
|
a: A,
|
|
};
|
|
export fn entry() usize {
|
|
return @sizeOf(A);
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :1:11: error: struct 'tmp.A' depends on itself
|
|
// :8:5: note: while checking this field
|
|
// :5:5: note: while checking this field
|
|
// :2:5: note: while checking this field
|