Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
reassign_to_array_parameter.zig
pretty
plain
permalink
blame
history
•
10 lines
•
169 B
1
fn reassign(a: [3]f32) void {
2
a = [3]f32{ 4, 5, 6 };
3
}
4
export fn entry() void {
5
reassign(.{ 1, 2, 3 });
6
}
7
8
// error
9
//
10
// :2:5: error: cannot assign to constant