Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
alignment_of_enum_field_specified.zig
pretty
plain
permalink
blame
history
•
15 lines
•
214 B
1
// zig fmt: off
2
const Number = enum {
3
a,
4
b align(i32),
5
};
6
// zig fmt: on
7
8
export fn entry1() void {
9
const x: Number = undefined;
10
_ = x;
11
}
12
13
// error
14
//
15
// :4:13: error: enum fields cannot be aligned