Two modules importing each other with pub hand the unit its own interface back, and its types were defined twice.