President Donald Trump and Elon Musk’s months-long friendship devolved in spectacular fashion Thursday as the world’s richest man and the world’s most powerful man engaged in a nasty, public back-and-forth on their respective social media platforms—just months after the two formed a friendship so close Musk sometimes slept at the White House.