mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 18:13:19 +00:00
I was just bitten by this footgun, where I actually wanted `sliceAsBytes` but unintentionally used `asBytes`, which in practice ignored all but the first element. Just add a comptime assertion to trigger a compile error in this case.