A good source of counterexamples are the ordinal numbers with the order topology, which is Hausdorff.
The first uncountable ordinal $\omega_1$ is what you're looking for.
Consider a sequence $(\alpha_n)$ in $\omega_1$. Then each term of the sequence is a countable ordinal and the supremum of a countable set of countable ordinals is countable. Therefore the sequence is inside $\beta+1$, where $\beta=\sup\{\alpha_n\}$. The ordinal $\beta+1$ is, like all successor ordinals, compact.
Hence the sequence has a convergent subsequence.
On the other hand, $\omega_1$ is not compact, because a limit ordinal is not compact.
More simply, as suggested by Henno Brandsma, the subspace $\omega_1$ of $\omega_1+1$ is dense, but $\omega_1$ is not a limit of a sequence in $\omega_1$ (same argument as before).