How to freeze position x and z on rigidbody(both!)

I was trying to use RigidbodyConstraints to freeze a cube’s x and z position. I then used Debug.Log(rigidbody.constraints) to print the constraints. When I ran the game, It printed only(I checked all the Debug.LOg stuff in the console) position x, the one I set to freeze second. Is there a way to freeze both?

It literally says in the documentation how, and even uses it in the example:

you just put | (the bitwise or operator) inbetween the two constraints

Just you need to check freeze Position on rigid body