1const Foo = struct {
2 field: i32,
3};
4export fn derp() void {
5 const f = Foo{
6 .field = 1234,
7 };
8 f.field = 0;
9}
10
11// error
12//
13// :8:6: error: cannot assign to constant