mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:04:43 +01:00
13 lines
228 B
Zig
13 lines
228 B
Zig
test "@unionInit on union w/ tag but no fields" {
|
|
const S = struct {
|
|
comptime {
|
|
try expect(false);
|
|
}
|
|
};
|
|
_ = S;
|
|
}
|
|
|
|
// error
|
|
// is_test=true
|
|
//
|
|
// :4:13: error: 'try' outside function scope
|