aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/direct_struct_loop.zig
blob: 9fdda1bdc706e6fd482559b5f1d16ef739b0872b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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