v2 / vlib / v / parser / tests / postfix_err_b.out
14 lines · 14 sloc · 536 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/parser/tests/postfix_err_b.vv:7:14: warning: `++` operator can only be used as a statement
2 5 | for _ in 0 .. 3 {
3 6 | unsafe {
4 7 | *(arrayptr++) = 0
5 | ~~
6 8 | }
7 9 | }
8vlib/v/parser/tests/postfix_err_b.vv:3:18: warning: cannot cast a fixed array (use e.g. `&arr[0]` instead)
9 1 | fn main() {
10 2 | mut array := [3]int{}
11 3 | mut arrayptr := &int(array)
12 | ~~~~~~~~~~~
13 4 |
14 5 | for _ in 0 .. 3 {
15