mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
14 lines
225 B
Zig
14 lines
225 B
Zig
test "@unionInit on union w/ tag but no fields" {
|
|
const S = struct {
|
|
comptime {
|
|
try expect(false);
|
|
}
|
|
};
|
|
_ = S;
|
|
}
|
|
|
|
// error
|
|
// is_test=1
|
|
//
|
|
// :4:13: error: 'try' outside function scope
|