mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
13 lines
144 B
Zig
13 lines
144 B
Zig
|
pub fn main() u8 {
|
||
|
var e = foo();
|
||
|
const i = e catch 42;
|
||
|
return i - 42;
|
||
|
}
|
||
|
|
||
|
fn foo() anyerror!u8 {
|
||
|
return error.Dab;
|
||
|
}
|
||
|
|
||
|
// run
|
||
|
//
|