Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
deref_slice_and_get_len_field.zig
pretty
plain
permalink
blame
history
•
9 lines
•
167 B
1
export fn entry() void {
2
var a: []u8 = undefined;
3
_ = a.*.len;
4
_ = &a;
5
}
6
7
// error
8
//
9
// :3:10: error: index syntax required to access runtime-known slice