In 2016, France passed a law that forbids supermarkets to throw away edible food. Instead, they donate unsold food to charity.
edit: So I filed a complaint with the store