Visa rules are country specific and don’t apply to the EU in general. There are countries that require you to leave.