What we can learn from sun-like stars that eat earth-like planets