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

#write test.zig {
fn foo() anyerror!u32 {
    return 1;
}

export fn entry() void {
    const x = -foo();
    _ = x;
}
#}
#update
#check errors {
test.zig:6:15: error: negation of type 'anyerror!u32'
#}
