| 1 | vlib/v/checker/tests/struct_ptr_cast_zero_err.vv:7:5: error: cannot null cast a struct pointer, use &Context(unsafe { nil }) |
| 2 | 5 | b := 0 |
| 3 | 6 | |
| 4 | 7 | _ = &Context(0) |
| 5 | | ~~~~~~~~~~~ |
| 6 | 8 | _ = &Context(a) |
| 7 | 9 | _ = &Context(b) |
| 8 | vlib/v/checker/tests/struct_ptr_cast_zero_err.vv:8:5: error: cannot null cast a struct pointer, use &Context(unsafe { nil }) |
| 9 | 6 | |
| 10 | 7 | _ = &Context(0) |
| 11 | 8 | _ = &Context(a) |
| 12 | | ~~~~~~~~~~~ |
| 13 | 9 | _ = &Context(b) |
| 14 | vlib/v/checker/tests/struct_ptr_cast_zero_err.vv:9:5: error: cannot null cast a struct pointer, use &Context(unsafe { nil }) |
| 15 | 7 | _ = &Context(0) |
| 16 | 8 | _ = &Context(a) |
| 17 | 9 | _ = &Context(b) |
| 18 | | ~~~~~~~~~~~ |
| 19 | |