Tesla CEO Elon Musk believes it will be against the law to drive a car yourself in the future.

Musk shared his views of the future regarding self-driving cars at chipmaker Nvidia's annual conference on Tuesday, telling CEO and co-founder Jen-Hsun Huang that lawmakers could ban vehicles driven by humans for being "too dangerous," according to CBS News.

"We'll take autonomous cars for granted in quite a short time," he said. "I almost view it as a solved problem. We know what to do, and we'll be there in a few years."

As part of his argument, Musk pointed out how elevators were once commonly operated by people, but today's circuitry brings passengers to where they need to be so that they don't have to push any buttons, ABC News reported.

Self-driving cars are the latest form of technology Musk discussed in regards to having an effect on humanity in the future. He previously expressed concerns about the development of artificial intelligence, comparing the technology to "summoning the demon" and saying it's "potentially more dangerous than nukes," CBS News reported.

However, while Musk said more measures need to be taken to combat hacking of self-driving cars as the technology develops, these vehicles should be safe overall.

"I don't think we'll have to worry about autonomous cars, because that's sort of like a narrow form of A.I.," he explained.

Musk previously said that self-driving technology could save lives, and Tesla has upgraded its cars with autonomous features, ABC News reported. However, the company's cars aren't completely autonomous.

"To be clear, Tesla is strongly in favor of people being allowed to drive their cars and always will be. Hopefully, that is obvious," Musk tweeted on Wednesday.

"However, when self-driving cars become safer than human-driven cars, the public may outlaw the latter. Hopefully not."