v2 / vlib / v / checker / tests / map_with_result_value_err.out
19 lines · 19 sloc · 707 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/checker/tests/map_with_result_value_err.vv:2:7: error: cannot use Result type as map value type
2 1 | struct Foo {
3 2 | map1 map[string]!string
4 | ~~~~~~~~~~~~~~~~~~
5 3 | }
6 4 |
7vlib/v/checker/tests/map_with_result_value_err.vv:6:7: error: cannot use Result type as map value type
8 4 |
9 5 | fn main() {
10 6 | _ := map[string]!string{}
11 | ~~~~~~~~~~~~~~~~~~~~
12 7 |
13 8 | dump(map[string]!string{})
14vlib/v/checker/tests/map_with_result_value_err.vv:8:7: error: cannot use Result type as map value type
15 6 | _ := map[string]!string{}
16 7 |
17 8 | dump(map[string]!string{})
18 | ~~~~~~~~~~~~~~~~~~~~
19 9 | }
20