vxx2 / vlib / v / checker / tests / struct_field_init_with_result_err.out
6 lines · 6 sloc · 276 bytes · bc68c87f21c117797a77bc87a71cf98144d6a58b
Raw
1vlib/v/checker/tests/struct_field_init_with_result_err.vv:10:18: error: example() returns `!int`, so it should have either an `or {}` block, or `!` at the end
2 8 |
3 9 | fn main() {
4 10 | println(Example{example()})
5 | ~~~~~~~~~
6 11 | }
7