| 1 | export fn a() void { |
| 2 | comptime 1; |
| 3 | } |
| 4 | export fn b() void { |
| 5 | comptime bar(); |
| 6 | } |
| 7 | fn bar() u8 { |
| 8 | return 2; |
| 9 | } |
| 10 | |
| 11 | // error |
| 12 | // |
| 13 | // :2:5: error: value of type 'comptime_int' ignored |
| 14 | // :2:5: note: all non-void values must be used |
| 15 | // :2:5: note: to discard the value, assign it to '_' |
| 16 | // :5:5: error: value of type 'u8' ignored |
| 17 | // :5:5: note: all non-void values must be used |
| 18 | // :5:5: note: to discard the value, assign it to '_' |