vxx2 / vlib / v / checker / tests / struct_ptr_cast_zero_err.out
18 lines · 18 sloc · 696 bytes · 6c9b3c8ebf7b7478e66c27ca67dc44b86f7f2f08
Raw
1vlib/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)
8vlib/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)
14vlib/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