| 1 | vlib/v/checker/tests/array_voidptr_assign_err.vv:2:6: warning: unused variable: `a` |
| 2 | 1 | fn main() { |
| 3 | 2 | mut a := []int{} |
| 4 | | ^ |
| 5 | 3 | a = unsafe { nil } |
| 6 | 4 | |
| 7 | vlib/v/checker/tests/array_voidptr_assign_err.vv:3:6: error: cannot assign to `a`: expected `[]int`, not `voidptr` |
| 8 | 1 | fn main() { |
| 9 | 2 | mut a := []int{} |
| 10 | 3 | a = unsafe { nil } |
| 11 | | ~~~~~~ |
| 12 | 4 | |
| 13 | 5 | // vfmt off |
| 14 | vlib/v/checker/tests/array_voidptr_assign_err.vv:6:6: error: cannot assign to `a`: expected `[]int`, not `voidptr` |
| 15 | 4 | |
| 16 | 5 | // vfmt off |
| 17 | 6 | a = voidptr(0) |
| 18 | | ~~~~~~~~~~ |
| 19 | 7 | } |
| 20 |