aboutsummaryrefslogtreecommitdiff
path: root/test/cases/errors.3.zig
blob: 390696fcfcb261ea6c8383d13c0bec8c9e85c445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
pub fn main() void {
    foo() catch unreachable;
}

fn foo() anyerror!void {
    try bar();
}

fn bar() anyerror!void {}

// run
//