In my Algebraic Topology course we are studying CW complexes and at some point my teacher gave us a non-example I do not totally understand, let me explain.
Consider the space $X = \bigcup_n X_n$ where $X_n$ is the circle in $\mathbb R^2$ of radius $1/n$ centered at $(1/n, 0)$, which should look like something like this:
He told us this was not a CW complex but did not tell us why. Clearly it may be constructed by attaching a countable number of circles to a point. The only axiom in the definition of CW complex that is likely to be problematic in this case is (in my opinion)
A subset $A \subset X$ is closed in $X$ if and only if $A \cap X^n$ is closed in $X^n$ for all $n$.
But still I am unable to construct an closed set in $X$ that is not closed in $X^n$, I am not totally confortable with the topology on CW complexes. Could one of you help me with this ?

For an alternative way, you could also use the fact that CW complexes are locally contractible.
– Thorgott Aug 01 '22 at 12:01