#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
fn CreateType() !type {
    return struct {};
}
const MyType = CreateType();
const TestType = struct {
    my_type: MyType,
};
comptime {
    _ = @sizeOf(TestType) + 1;
}
#}
#update
#check errors {
test.zig:6:14: error: expected type 'type', found 'error{}!type'
test.zig:6:14: note: cannot convert error union to payload type
test.zig:6:14: note: consider using 'try', 'catch', or 'if'
#}
