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

#write test.zig {
export fn foo() void {
    while (bar()) |x| {
        _ = x;
    }
}
fn bar() bool {
    return true;
}
#}
#update
#check errors {
test.zig:2:15: error: expected optional type, found 'bool'
#}
