v2 / vlib / v / checker / tests / array_of_generic_struct_init_err.out
12 lines · 12 sloc · 422 bytes · e2e5cf8db56f3562c7baa735061690be936bdf3e
Raw
1vlib/v/checker/tests/array_of_generic_struct_init_err.vv:6:6: warning: unused variable: `arr`
2 4 |
3 5 | fn main() {
4 6 | mut arr := []Item{}
5 | ~~~
6 7 | }
7vlib/v/checker/tests/array_of_generic_struct_init_err.vv:6:15: error: generic struct `Item` must specify type parameter, e.g. Item[int]
8 4 |
9 5 | fn main() {
10 6 | mut arr := []Item{}
11 | ~~~~
12 7 | }
13