master
1comptime {
2 foo();
3}
4
5fn foo() void {
6 try bar();
7}
8
9pub fn bar() u8 {
10 return 0;
11}
12
13// error
14//
15// :6:12: error: expected error union type, found 'u8'
16// :6:12: note: consider omitting 'try'
17// :2:8: note: called at comptime here