| 1 | vlib/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 | |
| 8 | vlib/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{ |
| 15 | vlib/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 |