blob: 05c4373705227b974529365be866124941b3737b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
export fn foo() void {
defer bar();
}
fn bar() anyerror!i32 { return 0; }
// error
// backend=stage2
// target=native
//
// :2:14: error: error is ignored
// :2:14: note: consider using `try`, `catch`, or `if`
|