The rate of energy loss in the case of the earth and the sun is very low – about enough to run a small electric heater. This means it will take about a thousand million million million million years for the earth to run into the sun, so there’s no immediate cause for worry!