mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-07 17:11:19 -04:00
50339f595a
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
11 lines
154 B
Zig
11 lines
154 B
Zig
export fn f() void {
|
|
var cstr = "Hat";
|
|
cstr[0] = 'W';
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :3:9: error: cannot assign to constant
|