v4 / vlib / v / checker / tests / immutable_array_struct_assign.out
6 lines · 6 sloc · 216 bytes · 86dfd3902fa851455e98b176a0abf5ff9dc6ab28
Raw
1vlib/v/checker/tests/immutable_array_struct_assign.vv:8:2: error: `a` is immutable, declare it with `mut` to make it mutable
2 6 | fn main() {
3 7 | a := Aaa{}
4 8 | a.i[0] += 3
5 | ^
6 9 | }
7