Zig Version
0.17.0-dev.215+8c5542bd3
Steps to Reproduce and Observed Behavior
Steps to reproduce
zig run this code:
pubfnmain()void{// unsafe cast// from *const @Tuple(&.{*const [5:0]u8})// to *const @Tuple(&.{[]const u8})constfoo:*const@Tuple(&.{[]constu8})=&.{"hello"};_=foo;}
Observed behavior
Code compiles successfully
Expected Behavior
Zig refuses to compile code on the grounds of unsafe pointer casting.
### Zig Version
0.17.0-dev.215+8c5542bd3
### Steps to Reproduce and Observed Behavior
#### Steps to reproduce
`zig run` this code:
```zig
pub fn main() void {
// unsafe cast
// from *const @Tuple(&.{*const [5:0]u8})
// to *const @Tuple(&.{[]const u8})
const foo: *const @Tuple(&.{[]const u8}) = &.{"hello"};
_ = foo;
}
```
#### Observed behavior
Code compiles successfully
### Expected Behavior
Zig refuses to compile code on the grounds of unsafe pointer casting.