mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
11 lines
163 B
Zig
11 lines
163 B
Zig
export fn f() void {
|
|
var cstr: []const u8 = "Hat";
|
|
cstr[0] = 'W';
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :3:13: error: cannot assign to constant
|