blob: c6abb13ee67f8e407cab16ce3b3d33833b1477af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|