Just posted a similar question, but my proof had ambiguity in it so I rewrote it just so I can check if my reasoning is correct...
Proposition:
Let $f$ be a function defined as $f(x) = x$ if $x$ is rational and $f(x) = 0$ otherwise. The limit of $f(x)$ as $x$ approaches any number $a \neq 0$ does not exist.
My proof:
Suppose by contradiction that there is a limit $L$ for $f(x)$, as $x$ approaches $a \neq 0$. By definition of limit, there is a $\delta$-neighborhood of $a$ in which, as $|x - a| > 0$ gets smaller, in a $\epsilon$-neighborhood of $L$, $|f(x) - L|$ also gets smaller. Let's take a irrational number $x$ in such an neighborhood of $a$. That would imply $|L| < \epsilon$. We know that we can find a $y$ in the same interval as $x$ such that $|y - a|<|x - a|$ implies that $|f(y) - L| < |L| < \epsilon$. Since there are infinitely many numbers like that who happen to be rational, we have that $|y - L| < |L|$. But we also have infinitely many irrational numbers $z$ for which $|z -a| < |y - a|$ such that $|f(z) - L| < |y - L| < |L| < \epsilon$, but this is absurd. We conclude then that there is no limit $L$. ■
It is still not correct. You wrote “there is a $\delta$-neighborhood of $a$ in which, as $|x - a| > 0$ gets smaller, in a $\varepsilon$-neighborhood of $L$, $|f(x) - L|$ also gets smaller”. Don't you see that it is rather strange, to say the least, that, after “there is a $\delta$-neighborhood”, $\delta$ is not mentioned again? And what does “gets smaller” mean in a formal proof?