13 lines
193 B
Zig
13 lines
193 B
Zig
pub fn reassign(s: []const u8) void {
|
|
s = s[0..];
|
|
}
|
|
export fn entry() void {
|
|
reassign("foo");
|
|
}
|
|
|
|
// error
|
|
// backend=llvm
|
|
// target=native
|
|
//
|
|
// :2:10: error: cannot assign to constant
|