Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
assign_through_constant_slice.zig
pretty
plain
permalink
blame
history
•
8 lines
•
131 B
1
export fn f() void {
2
var cstr: []const u8 = "Hat";
3
cstr[0] = 'W';
4
}
5
6
// error
7
//
8
// :3:9: error: cannot assign to constant