President Trump on Wednesday night rejected green energy advocates who say only certain kinds of energy can be used to fuel the country and said taking their advice would put U.S. economic growth at risk.

"I don't want to just hope the wind blows to light up your homes and your factory," Trump said at a campaign-style rally in Cedar Rapids, Iowa.

Trump said he's pursuing an all-of-the-above energy strategy, one that has helped increase coal mining jobs for the first time in years. He said coal mines just opened in Pennsylvania for the first time in years.

"And 33,000 mining jobs have been added since my inauguration," he said. "We're going to have all, whether it's natural gas, whether it's alternative sources, we're going to have everything."

"We use electric," he said. "We use wind. We use solar. We use coal. We use natural gas. We will use nuclear if the right opportunity presents itself."

"We're going to be strong for the future," he said.