Go back a few decades to the bankruptcy of Orange County California. Unions negotiated away a large part of pension obligations to members.
When (not if) the state of California goes bankrupt, those obligations will not go away entirely, but will be reduced through bankruptcy negotiations.