struct B { // <-- declare before int number; }; struct A { int data; B b; // <--- declare data member of `B` };