Let $X\subset M$ is an open and closed set such as $x \in X, y \in X^c$. Proof that there is no connected in M which contains x and y.
What I did:
Suposse that there is $Y \subset M$ connected with $x,y \in Y$. So $Y \cap X \neq \emptyset $ and $Y \cap X^c \neq \emptyset$, then $Y \cap \partial X \neq \emptyset$
How can I argue that there is a contradiction?