Energy required to fully charge a Tesla: 50kwh [1]
Average electricity output from solar: 200w/meter squared [2]
50000/200 = 250 square meters of solar for 1 hour 250/8 = 31.5 square meters of solar for 8 hours (typical day)
Number of cars on the planet: 1.42 billion [3]
1.42b * 31.5 = 44.375 billion square meters of solar needed to recharge all the cars on the planet, if they were all charging at the same time.
Total cost for just the solar panels: $177 billion [4]
Not to mention the land purchase and infrastructure investment to carry that much extra electricity every day.
1. https://www.motorbiscuit.com/how-much-does-it-cost-charge-te... 2. https://www.theecoexperts.co.uk/solar-panels/how-much-electr.... 3. https://www.rfidtires.com/how-many-cars-world.html#:~:text=P.... 4. https://www.solarpowerfam.com/cost-of-solar-panels-per-squar... $4 for best cost.