Giant planet found orbiting a dead star shows what may happen when our sun dies