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

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

// error
//
// :6:31: error: expected type 'tmp.S', found 'struct { comptime void = {} }'
// :1:11: note: struct declared here