If your carry-on is slightly too large, the airline may likely let it pass or require you to gate check it. Which simply means they will place it in the cargo hold as you enter the plane. Usually, this is free, but some airlines charge a fee.