If you were worried that Republican presidential candidate Donald Trump's pledge to build a wall at the U.S. border with Mexico would also apply to Canada, rest easy.

"I love Canada," Trump told CBC reporter Meagan Fitzpatrick in Washington on Wednesday. "I would not build a wall on the Canadian border."

Trump has repeatedly promised to stop illegal migrants trying to get into the U.S. from Mexico by constructing a giant wall. Another Republican leadership contender, Wisconsin Gov. Scott Walker, raised the idea of doing the same at the U.S. border with Canada during an interview with NBC's Meet The Press on Aug. 30.

Republican presidential candidate Scott Walker told an interviewer in August that there are 'legitimate concerns' about the border between the U.S. and Canada. (Dominick Reuter/Reuters)

"Some people have asked us about that in New Hampshire," Walker told the interviewer. "They raised some very legitimate concerns, including some law-enforcement folks that brought that up to me at one of our town hall meetings."

When asked about Walker's remarks, Canadian Defence Minister Jason Kenney said his government would "vigorously oppose any thickening of the border."

Trump, who is the frontrunner in the Republican leadership race, made the remarks rejecting the idea of a wall at the Canadian border while attending a rally opposing U.S. President Barack Obama's nuclear deal with Iran. Trump and fellow candidate Senator Ted Cruz were among the speakers.

Donald Trump tells a crowd of Tea Party supporters and others opposed to a recently negotiated nuclear deal with Iran that America is led by 'very, very stupid people.' (Meagan Fitzpatrick/CBC )

The agreement struck by Iran, the U.S., China, Russia, France, Britain and Germany in July will provide Iran hundreds of billions of dollars in relief from international sanctions in exchange for a decade of constraints on its nuclear program.

The deal is unanimously opposed by congressional Republicans and by the leaders of Israel, who fear a newly enriched Iran could wreak havoc across the Middle East.

But Trump's chest-thumping speech at the rally, in which he told the crowd America is run by "very, very stupid people," is unlikely to derail the deal. Obama has enough votes lined up to get the deal approved by Congress.