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