mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
14 lines
156 B
Zig
14 lines
156 B
Zig
pub fn main() u8 {
|
|
var e = foo();
|
|
_ = &e;
|
|
const i = e catch 42;
|
|
return i - 42;
|
|
}
|
|
|
|
fn foo() anyerror!u8 {
|
|
return error.Dab;
|
|
}
|
|
|
|
// run
|
|
//
|