Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
empty_packed_union.zig
pretty
plain
permalink
blame
history
•
8 lines
•
140 B
1
export fn foo() void {
2
const U = packed union {};
3
_ = @as(U, undefined);
4
}
5
6
// error
7
//
8
// :2:22: error: packed union has no fields