Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
dereference_slice.zig
pretty
plain
permalink
blame
history
•
10 lines
•
154 B
1
fn entry(x: []i32) i32 {
2
return x.*;
3
}
4
comptime {
5
_ = &entry;
6
}
7
8
// error
9
//
10
// :2:13: error: index syntax required to access runtime-known slice