master
1const A = struct {};
2const B = struct {};
3comptime {
4 const val: [1]A = .{.{}};
5 const ptr: *const [1]B = @ptrCast(&val);
6 _ = ptr ** 2;
7}
8
9// error
10//
11// :6:9: error: comptime dereference requires '[1]tmp.B' to have a well-defined layout