Does the fact that $\mathbb{Q}$ is not locally compact as a subspace of $\mathbb{R}$ generalise to the following?
If $X$ is a Hausdorff topological space with a subset $Y \subseteq X$ such that both $Y$ and $X \setminus Y$ are dense in $X$, then every point of $Y$ has no compact neighbourhoods in $Y$ (thus, if $X$ is non-empty, $Y$ is not locally compact).