mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-06-07 08:09:39 -04:00
14 lines
230 B
Zig
14 lines
230 B
Zig
export fn entry() void {
|
|
_ = foo();
|
|
}
|
|
fn foo() !void {
|
|
return error.OutOfMemory;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :2:12: error: error is discarded
|
|
// :2:12: note: consider using `try`, `catch`, or `if`
|