vxx2 / vlib / v / checker / tests / struct_void_field_err.out
21 lines · 21 sloc · 766 bytes · 071ab6c3628b402123a7a5add8dc6b9331422c09
Raw
1vlib/v/checker/tests/struct_void_field_err.vv:5:16: notice: voidptr variables may only be assigned voidptr values (e.g. unsafe { voidptr(1) })
2 3 | struct Foo {
3 4 | mut:
4 5 | bar voidptr = 1
5 | ^
6 6 | }
7 7 |
8vlib/v/checker/tests/struct_void_field_err.vv:11:8: notice: voidptr variables may only be assigned voidptr values (e.g. unsafe { voidptr(n) })
9 9 | n := 1
10 10 | _ := Foo{
11 11 | bar: n
12 | ^
13 12 | }
14 13 | _ := Foo{
15vlib/v/checker/tests/struct_void_field_err.vv:17:8: notice: voidptr variables may only be assigned voidptr values (e.g. unsafe { voidptr(1) })
16 15 | }
17 16 | _ := Foo{
18 17 | bar: 1
19 | ^
20 18 | }
21 19 | }
22