If you realize your carry-on luggage is too large to fit once you're in the plane, the airline staff will most likely ask you to check it in at the gate. This means that your luggage will be placed in the airplane's cargo hold and you will not be able to access it until you arrive at your destination.