mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
11 lines
170 B
Zig
11 lines
170 B
Zig
pub fn main() void {
|
|
const a: anyerror!u32 = error.Bar;
|
|
a catch |err| assert(err == error.Bar);
|
|
}
|
|
fn assert(b: bool) void {
|
|
if (!b) unreachable;
|
|
}
|
|
|
|
// run
|
|
//
|