Prove or Disprove: Let $x_0\in\mathbb R$ and let $f$ be a function that is defined on a neighborhood of $x_0$. If $f$ is not continuous at $x_0$ and $f^3$ is continuous at $x_0$, then $f^2+f+1$ is not continuous at $x_0$.
I am struggling with this proof (or disproof), because in my mind if we have that $f^3$ is continuous at $x_0$, then $lim_{x\to x_0} f^3(x)=f^3(x_0)\implies lim_{x\to x_0}f(x)=\sqrt[\leftroot{-2}\uproot{2}3]{lim_{x\to x_0} f^3(x)}=\sqrt[\leftroot{-2}\uproot{2}3]{f^3(x_0)}=f(x_0)$ which just implies that $f$ is continuous at $x_0$ and then this is vacuously a proof.
Am I missing something?