mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +00:00
10 lines
125 B
Zig
10 lines
125 B
Zig
pub fn main() u8 {
|
|
var e: anyerror!u8 = error.Foo;
|
|
_ = &e;
|
|
const i = e catch 10;
|
|
return i - 10;
|
|
}
|
|
|
|
// run
|
|
//
|