zig/test/cases/error_unions.2.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
//