Freedom of movement means that citizens of countries within the European Union can freely live and work in other countries in the EU without restriction.
Denmark has a rule where citizenship of nationals born outside the country who have never lived in Denmark automatically lose citizenship when turning 22, unless they explicitly apply to retain it and are accepted.
In a hypothetical scenario, if a Danish national born abroad would move to a country inside the European Union, then turn 22 and automatically lose Danish citizenship what would happen?
Since the person is no longer a citizen of a EU state, would their residency in that EU country become illegal and they would be forced to leave (or apply for residency another way)?