mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +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'
|