pub fn inactiveUnionField(active: anytype, accessed: @TypeOf(active)) noreturn activeaccessed: @TypeOf(active)124
125
126
127
128
129 pub fn inactiveUnionField(active: anytype, accessed: @TypeOf(active)) noreturn {
@branchHint(.cold);
std.debug.panicExtra(@returnAddress(), "access of union field '{s}' while field '{s}' is active", .{
@tagName(accessed), @tagName(active),
});
}