hasUniqueRepresentation incorrectly returns false for packed structs #17592
Labels
bug
Observed behavior contradicts documented or intended behavior
standard library
This issue involves writing Zig code for the standard library.
Milestone
Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
Expected Behavior
hasUniqueRepresentation
returns true forS
.It seems that packed structs should be specially handled over here:
zig/lib/std/meta/trait.zig
Lines 563 to 573 in aeadcb3
The text was updated successfully, but these errors were encountered: