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

#write test.zig {
const C = struct {
    c: type,
    b: u32,
};
const S = struct {
    fn foo(b: u32, c: anytype) void {
        bar(C{ .c = c, .b = b });
    }
    fn bar(_: anytype) void {}
};

export fn entry() void {
    S.foo(0, u32);
}
#}
#update
#check errors {
test.zig:7:25: error: unable to resolve comptime value
test.zig:7:25: note: initializer of comptime-only struct 'test.C' must be comptime-known
test.zig:2:8: note: struct requires comptime because of this field
test.zig:2:8: note: types are not available at runtime
#}
