zig/test/cases/error_unions.4.zig

13 lines
145 B
Zig
Raw Normal View History

2022-04-27 21:59:55 +01:00
pub fn main() u8 {
var e = foo();
const i = e catch 69;
return i - 69;
}
fn foo() anyerror!u8 {
return error.Bruh;
}
// run
//