When he volunteered to get laid off (with the intention of getting a severance), the person he said that to fired him on the spot for "not being a team player."
Eventually, every last one of us were laid off. But it took six months and I used the time to find a new role and I also received a four month severance.
Sometimes voluntary layoffs are announced, but really you need to be able to read between the lines and smell that something is coming before the layoff is announced. (The reason is that layoffs are usually kept confidential because no one wants to incite panic.)
What I did a few years ago was have a 1-1 with a VP and basically implied that I was ready to do something different. I ended up with a great severance package right as the pandemic was taking off.