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