aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/ignored_statement_value.zig
blob: 0b8b11e4bfa8d22f49ff533d0fe65aea771715a0 (plain)
1
2
3
4
5
6
7
8
9
export fn foo() void {
    1;
}

// error
//
// :2:5: error: value of type 'comptime_int' ignored
// :2:5: note: all non-void values must be used
// :2:5: note: to discard the value, assign it to '_'