A set for which all subsets are compact

Task number: 3173

Let $$X \subseteq \mathbb R^n$$ be a set, for which all subsets are compact. Show that $$X$$ is finite..