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

#write test.zig {
export fn entry() void {
    const damn = Container{
        .not_optional = getOptional(),
    };
    _ = damn;
}
pub fn getOptional() ?i32 {
    return 0;
}
pub const Container = struct {
    not_optional: i32,
};
#}
#update
#check errors {
test.zig:3:23: error: expected type 'i32', found '?i32'
test.zig:3:23: note: cannot convert optional to payload type
test.zig:3:23: note: consider using '.?', 'orelse', or 'if'
#}
