I'm trying to show that $\mathbb Q$ is not locally compact using this definition:
So I need to show that there is some point $x\in \mathbb Q$ such that no matter what neighborhood of $x$ in $\mathbb Q$ I take, no compact subset of $\mathbb Q$ can contain it.
Any neighborhood of $x$ in $\mathbb Q$ is of the form $(a,b)\cap \mathbb Q$ where $x\in (a,b)$. But I think my problem is that I don't understand/feel how compact sets in $\mathbb Q$ look like (except finite sets). If there is a compact subset of $\mathbb Q$ containing $(a,b)\cap \mathbb Q$, what does it contradict to?