legal impossibility
In criminal law, a defense to charges on the basis that the acts committed were not illegal. In civil law, an act which is impossible by operation of law or rule, such as an attempt by a minor to enter into a binding contract.