Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
try_in_comptime_in_struct_in_test.zig
pretty
plain
permalink
blame
history
•
13 lines
•
228 B
1
test "@unionInit on union w/ tag but no fields" {
2
const S = struct {
3
comptime {
4
try expect(false);
5
}
6
};
7
_ = S;
8
}
9
10
// error
11
// is_test=true
12
//
13
// :4:13: error: 'try' outside function scope