vxx2 / vlib / v / checker / tests / mismatched_ptr_op_ptr.out
21 lines · 21 sloc · 752 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/checker/tests/mismatched_ptr_op_ptr.vv:5:11: error: mismatched types `&string` and `string`
2 3 | unsafe {
3 4 | b := &a
4 5 | println(b + *b)
5 | ~~~~~
6 6 | println(b + b)
7 7 | }
8vlib/v/checker/tests/mismatched_ptr_op_ptr.vv:5:3: error: `println` can not print void expressions
9 3 | unsafe {
10 4 | b := &a
11 5 | println(b + *b)
12 | ~~~~~~~~~~~~~~~
13 6 | println(b + b)
14 7 | }
15vlib/v/checker/tests/mismatched_ptr_op_ptr.vv:6:11: error: invalid operator `+` to `&string` and `&string`
16 4 | b := &a
17 5 | println(b + *b)
18 6 | println(b + b)
19 | ~~~~~
20 7 | }
21 8 | }
22