Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
invalid_tuple_to_struct_coercion.zig
pretty
plain
permalink
blame
history
•
12 lines
•
217 B
1
const S = struct {
2
fizz: void,
3
};
4
5
export fn entry() void {
6
_ = @as(S, struct { void }{{}});
7
}
8
9
// error
10
//
11
// :6:31: error: expected type 'tmp.S', found 'struct { void }'
12
// :1:11: note: struct declared here