Originally Posted by
findark
TIMATIC is
usually good for catching this at departure because the delivering carrier really, really does not want to be involved in a situation like this. I'm not terribly sure what the obligation is for a carrier who takes a citizen of C from A (exiting from a single-entry now-void visa) to B (where they are inadmissible), but I would assume they have to ultimately transport them back to C at their expense. It gets even worse in the more difficult case of someone who is not legally allowed entry anywhere (maybe dump them
at LYR 
) but I think that's pretty rare.
A few years back, I met a Chinese guy at HAV airport, his ticket was PEK-SVO-HAV; HAV-MEX-PVG. He was stuck at gate area, I suppose that he already got ticket to MEX, but was denied of boarding due to no visa to MEX.
"Passengers transiting through Mexico City (MEX) with a confirmed onward ticket for a flight to a third country within 24 hours. They must stay in the international transit area of the airport and have documents required for the next destination."
My guess is that he might need to switch terminal at MEX that complicates the issue.
I don't know how eventually he got out of there. The cubans asked for all his money to "book" him a flight home. I thought Aeroflot might need to take him back.