If your carry-on bag is outside of the airline's allowed dimensions, you'll be required to gate check your bag and it will be stowed under the plane rather than allowed on the plane with you. Be really careful about this because you could incur an additional charge for checking a bag at the gate (which is often more than if you checked the bag when you got your boarding pass).