vxx2 / vlib / v / checker / tests / immutable_struct_postfix.out
13 lines · 13 sloc · 426 bytes · 86dfd3902fa851455e98b176a0abf5ff9dc6ab28
Raw
1vlib/v/checker/tests/immutable_struct_postfix.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++
5 | ^
6 9 | a.i--
7 10 | }
8vlib/v/checker/tests/immutable_struct_postfix.vv:9:2: error: `a` is immutable, declare it with `mut` to make it mutable
9 7 | a := Aaa{}
10 8 | a.i++
11 9 | a.i--
12 | ^
13 10 | }
14