master
1export fn entry1() void {
2 _ = foo();
3}
4fn foo() !void {
5 return error.OutOfMemory;
6}
7export fn entry2() void {
8 const x: error{a} = undefined;
9 _ = x;
10}
11
12// error
13//
14// :2:12: error: error union is discarded
15// :2:12: note: consider using 'try', 'catch', or 'if'
16// :9:9: error: error set is discarded