Let $X_n \sim U(0, 1/n)$ and $X = \delta_0$, that is, $P(X = 0) = 1$. I found arguments for $X_n \stackrel{d}{\to} X$ and $X_n \not\stackrel{d}{\to} X$ which contradict each other.
Let $F_n$, $F$ be the corresponding distribution functions. We now have $$ F_n(t) = \begin{cases} 0, & \text{if $t \leq 0$} \\ nt, & \text{if $0 < t < 1/n$} \\ 1, & \text{if $1/n \leq t$} \end{cases} $$ Thus we have $F_n(t) \to F(t)$ pointwise (because $1/n < t$ for large $n$) except for $t=0$, which is the only value where $F$ isn't continuous. Thus we may write $X_n \stackrel{d}{\to} X$.
On the other hand, $\cos$ is continuous and bounded. We have $$ E(\cos(X_n)) = \int_0^{1/n} \cos(x) dx = \sin(1/n) \to 0 $$ but also $$ E(\cos(X)) = P(X=0)\cdot \cos(0) = 1. $$ It follows that $X_n \not\stackrel{d}{\to} X$. Where am I going wrong?