Craft Commerce carts containing out-of-stock products
The next time the cart 're-calculates' - so really any process on the cart such as updating it etc, the out of stock product will be detected and removed from the cart.

If somehow they get straight to the attempt order completion stage, then I am pretty sure an error is raised (&amp; returned in flash) and the order won't complete.