All three of these functions are legal Zig - as long as they are never called. They all are equivalent to unreachable, which, obviously is legal to appear in a Zig program, again provided it is never ...
#23528 describes a plan for catching the illegal dereference of dangling stack pointers, but the mechanism is more expensive than necessary for simpler cases such as the one above. This enhancement ...