Reminds me of a Star Trek DS9 episode that takes place in an SF of the near future.
"By the 2020s, those without employment, as well as those with mental problems, were moved into the Sanctuary Districts, which would later become no better than slums."
Soylent Green also presents an exaggerated but somewhat plausible view of the cities of the slightly distant future(stepping over piles of homeless people to get out of apartments, not the eating people)
Forget both of those old works. Looper came out in 2012 and oddly has a pronounced depiction of homelessness and poverty in America. And none of it seems exaggerated today. Though it was made after the Great Recession, so maybe Rian Johnson was just merely projecting then-current trends.
"By the 2020s, those without employment, as well as those with mental problems, were moved into the Sanctuary Districts, which would later become no better than slums."
https://memory-beta.fandom.com/wiki/Past_Tense
https://memory-beta.fandom.com/wiki/Bell_Riots