Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
comparing_a_non-optional_pointer_against_null.zig
pretty
plain
permalink
blame
history
•
8 lines
•
128 B
1
export fn entry() void {
2
var x: i32 = 1;
3
_ = &x == null;
4
}
5
6
// error
7
//
8
// :3:12: error: comparison of '*i32' with null