Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
indexing_single-item_pointer.zig
pretty
plain
permalink
blame
history
•
8 lines
•
188 B
1
export fn entry(ptr: *i32) i32 {
2
return ptr[1];
3
}
4
5
// error
6
//
7
// :2:15: error: type '*i32' does not support indexing
8
// :2:15: note: operand must be an array, slice, tuple, or vector