zig/test/cases/error_unions.4.zig

14 lines
157 B
Zig

pub fn main() u8 {
var e = foo();
_ = &e;
const i = e catch 69;
return i - 69;
}
fn foo() anyerror!u8 {
return error.Bruh;
}
// run
//