struct S { this(int) { } static immutable s = S(12); } void main() { } Error: cannot create a struct until its size is determined If static immutable s = S(12) changed to static immutable S s = S(12) compiles ok.