vq / vlib / v / checker / tests / unwrapped_option_result_in_operation_err.out
49 lines · 49 sloc · 2.64 KB · 69b4b41273d5e8c8caa5ca75896b9ba402609bbd
Raw
1vlib/v/checker/tests/unwrapped_option_result_in_operation_err.vv:3:6: error: unwrapped Result cannot be used with `!in`
2 1 | fn main() {
3 2 | list := ['string']
4 3 | _ = return_string_or_error() !in list
5 | ~~~~~~~~~~~~~~~~~~~~~~~~
6 4 | _ = return_string_or_error() in list
7 5 | _ = return_string_or_none() in list
8vlib/v/checker/tests/unwrapped_option_result_in_operation_err.vv:3:6: error: return_string_or_error() returns `!string`, so it should have either an `or {}` block, or `!` at the end
9 1 | fn main() {
10 2 | list := ['string']
11 3 | _ = return_string_or_error() !in list
12 | ~~~~~~~~~~~~~~~~~~~~~~~~
13 4 | _ = return_string_or_error() in list
14 5 | _ = return_string_or_none() in list
15vlib/v/checker/tests/unwrapped_option_result_in_operation_err.vv:4:6: error: unwrapped Result cannot be used with `in`
16 2 | list := ['string']
17 3 | _ = return_string_or_error() !in list
18 4 | _ = return_string_or_error() in list
19 | ~~~~~~~~~~~~~~~~~~~~~~~~
20 5 | _ = return_string_or_none() in list
21 6 | _ = return_string_or_error() !in list
22vlib/v/checker/tests/unwrapped_option_result_in_operation_err.vv:4:6: error: return_string_or_error() returns `!string`, so it should have either an `or {}` block, or `!` at the end
23 2 | list := ['string']
24 3 | _ = return_string_or_error() !in list
25 4 | _ = return_string_or_error() in list
26 | ~~~~~~~~~~~~~~~~~~~~~~~~
27 5 | _ = return_string_or_none() in list
28 6 | _ = return_string_or_error() !in list
29vlib/v/checker/tests/unwrapped_option_result_in_operation_err.vv:5:6: error: unwrapped Option cannot be used with `in`
30 3 | _ = return_string_or_error() !in list
31 4 | _ = return_string_or_error() in list
32 5 | _ = return_string_or_none() in list
33 | ~~~~~~~~~~~~~~~~~~~~~~~
34 6 | _ = return_string_or_error() !in list
35 7 | }
36vlib/v/checker/tests/unwrapped_option_result_in_operation_err.vv:6:6: error: unwrapped Result cannot be used with `!in`
37 4 | _ = return_string_or_error() in list
38 5 | _ = return_string_or_none() in list
39 6 | _ = return_string_or_error() !in list
40 | ~~~~~~~~~~~~~~~~~~~~~~~~
41 7 | }
42 8 |
43vlib/v/checker/tests/unwrapped_option_result_in_operation_err.vv:6:6: error: return_string_or_error() returns `!string`, so it should have either an `or {}` block, or `!` at the end
44 4 | _ = return_string_or_error() in list
45 5 | _ = return_string_or_none() in list
46 6 | _ = return_string_or_error() !in list
47 | ~~~~~~~~~~~~~~~~~~~~~~~~
48 7 | }
49 8 |
50