Zig Version
0.14.0-dev.1887+008acd054
Steps to Reproduce and Observed Behavior
pubfnmain() !void {
comptime {
varbuffer= [2]u8{ 1, 2 } **5;
varlen: usize=5;
_=&len;
@memcpy(buffer[0..len], buffer[4..4+len]);
}
}just taking the test case for memcpy aliasing but wrap it in a comptime block gives no compile error
Expected Behavior
compile error, safety checks should be an error at comptime
Zig Version
0.14.0-dev.1887+008acd054
Steps to Reproduce and Observed Behavior
just taking the test case for memcpy aliasing but wrap it in a comptime block gives no compile error
Expected Behavior
compile error, safety checks should be an error at comptime