While studying introductory analysis, I came across an exercise wherein we have to prove that if $A$ is a set, it can't contain itself. The hint indicates we're supposed to use the regularity axiom.
I want to find out the problem with defining $A$ as the set $\{A, x\}$, where $x$ is a non-set object. This definition doesn't violate the regularity axiom because of $x$, and such a set can exist because of the pair set axiom ($A$ and $x$ are objects, so there exists a pair set $\{A, x\}$ )
I tried looking up a proof online, but it only denotes a set containing itself as $A = \{A\}$. Why not $\{A, x\}$ or $\{A, x, y\}$, etc...?