aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/invalid_tuple_to_struct_coercion.zig
blob: 4f25a26ef1085445d867800dae6926187fd60a9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const S = struct {
    fizz: void,
};

export fn entry() void {
    _ = @as(S, struct { void }{{}});
}

// error
// target=native
//
// :6:31: error: no field named '0' in struct 'tmp.S'
// :1:11: note: struct declared here