extern
and packed
modifiers can appear on opaque
types
#22880
Labels
bug
Observed behavior contradicts documented or intended behavior
Zig Version
0.14.0-dev.3213+53216d2f2
Steps to Reproduce and Observed Behavior
Compile a Zig file that uses
extern opaque
andpacked opaque
types:The build succeeds:
Expected Behavior
This should be a compile error.
extern
andpacked
are meant to control a type's layout, so they make no sense to apply to anopaque
type as those types have unknown layout.The text was updated successfully, but these errors were encountered: