Astronomers spot evidence of a distant star consuming one of its planets, yielding insights into the fate that will befall the Earth in billions of years.