Files
zig/test/cases/compile_errors/ignored_statement_value.zig
2022-07-26 16:40:24 +03:00

12 lines
255 B
Zig

export fn foo() void {
1;
}
// error
// backend=stage2
// target=native
//
// :2:5: error: value of type 'comptime_int' ignored
// :2:5: note: all non-void values must be used
// :2:5: note: this error can be suppressed by assigning the value to '_'