1 2 3 4 5 6 7
comptime { const opt_ptr: ?*i32 = null; const ptr: *i32 = @ptrCast(opt_ptr); _ = ptr; } // test_error=null pointer casted to type