v4 / vlib / v / checker / tests / option_array_arg_err.out
13 lines · 13 sloc · 583 bytes · 9190f586a558d89f869542f838c0d2ebe43f8e35
Raw
1vlib/v/checker/tests/option_array_arg_err.vv:6:12: error: cannot use `?[]u8` as `[]u8`, it must be unwrapped first in argument 1 to `use_bytes`
2 4 |
3 5 | fn main() {
4 6 | use_bytes(?[]u8(none))
5 | ~~~~~~~~~~~
6 7 | maybe := ?[]u8(none)
7 8 | use_bytes(maybe)
8vlib/v/checker/tests/option_array_arg_err.vv:8:12: error: cannot use `?[]u8` as `[]u8`, it must be unwrapped first in argument 1 to `use_bytes`
9 6 | use_bytes(?[]u8(none))
10 7 | maybe := ?[]u8(none)
11 8 | use_bytes(maybe)
12 | ~~~~~
13 9 | }
14