People who say this are just short sighted.
Unless all jobs are unnecessary, you just change your job.
People seem to assume that if robots can code, all coders are out of a job, but I mean, if I didn't have to code, I'd just start all the businesses I've always wanted to start because like all the business people who are going to be replacing me with a bot, I too will have the time to replace business people with my bots.
Of course by this stage, if coders are replaced, pretty much all jobs will be replaced, millions, maybe billions of people will be jobless and without any ability to earn a wage, in other words, you won't be the only one with real problems when coders lose their jobs, it's just a matter of time till most jobs follow.
Not sure what we're hoping to get out of the AI future, but it seems like we're very intent on finding out at this point.
Maybe we're all just working towards making Ray Kurzeweil immortal at this stage?
My gut tells me though, we'll just be augmenting ourselves for a long time, and things will become faster paced.