mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
11 lines
217 B
Zig
11 lines
217 B
Zig
comptime {
|
|
const number = getNumberOrFail() catch unreachable;
|
|
_ = number;
|
|
}
|
|
|
|
fn getNumberOrFail() !i32 {
|
|
return error.UnableToReturnNumber;
|
|
}
|
|
|
|
// test_error=caught unexpected error 'UnableToReturnNumber'
|