Try to compile it with Visual Studio 2022 version 17.13 / MSVC 14.43.34808 (latest as of 2025-02-20). It does not compile with: foo.cppm(6): error C2028: struct/union member must be inside a struct/union