1const S = struct {
2 x: u32,
3};
4fn reassign(s: S) void {
5 s = S{ .x = 2 };
6}
7export fn entry() void {
8 reassign(S{ .x = 3 });
9}
10
11// error
12//
13// :5:5: error: cannot assign to constant