Czech republic and some other EU country actually have this in law. If employee with non-compete clause loses his job, employer has to pay his salary in full for duration of non compete. There are some exceptions such gross misconduct, voluntary redundancy etc..