Japan used to have quite a few public trash cans, but they were widely removed particularly from public transport as a security theater overreaction to the Tokyo sarin subway attacks in 1995. But drink vending machines do nearly universally have a trash can next to them, which is (supposed to be) used only for recycling cans.