Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
ignored_deferred_statement_value.zig
pretty
plain
permalink
blame
history
•
11 lines
•
222 B
1
export fn foo() void {
2
defer {
3
1;
4
}
5
}
6
7
// error
8
//
9
// :3:9: error: value of type 'comptime_int' ignored
10
// :3:9: note: all non-void values must be used
11
// :3:9: note: to discard the value, assign it to '_'