v2 / vlib / v / checker / tests / cast_string_to_rune_err.out
26 lines · 26 sloc · 1.03 KB · 7fd08eca9661654dab93b5fdb4f420e772d85a09
Raw
1vlib/v/checker/tests/cast_string_to_rune_err.vv:2:7: error: cannot cast `string` to rune, use `'0'.runes()` instead.
2 1 | fn main() {
3 2 | _ := rune('0')
4 | ~~~~~~~~~
5 3 | _ := rune('012345')
6 4 | _ := rune('v')
7vlib/v/checker/tests/cast_string_to_rune_err.vv:3:7: error: cannot cast `string` to rune, use `'012345'.runes()` instead.
8 1 | fn main() {
9 2 | _ := rune('0')
10 3 | _ := rune('012345')
11 | ~~~~~~~~~~~~~~
12 4 | _ := rune('v')
13 5 | _ := rune('abcd')
14vlib/v/checker/tests/cast_string_to_rune_err.vv:4:7: error: cannot cast `string` to rune, use `'v'.runes()` instead.
15 2 | _ := rune('0')
16 3 | _ := rune('012345')
17 4 | _ := rune('v')
18 | ~~~~~~~~~
19 5 | _ := rune('abcd')
20 6 | }
21vlib/v/checker/tests/cast_string_to_rune_err.vv:5:7: error: cannot cast `string` to rune, use `'abcd'.runes()` instead.
22 3 | _ := rune('012345')
23 4 | _ := rune('v')
24 5 | _ := rune('abcd')
25 | ~~~~~~~~~~~~
26 6 | }
27