President Barack Obama said Tuesday he would advise Donald Trump to “stop whining” about the race for the White House, hitting back at the Republican presidential nominee’s statements that the election is being rigged.

Speaking at a White House press conference with Italian Prime Minister Matteo Renzi, Obama said someone who questions the soundness of the U.S. election process doesn’t “have what it takes to be in this job.”