A hungry guy driving while high passed out in the McDonald’s drive-thru and was arrested by the cop in line behind him.

The 22-year-old from Hamilton placed his order at the window of the Golf Links Road fast food restaurant at 6:20 a.m. Saturday. Then he passed out, according to Hamilton Police.

The McDonald’s employee woke him and directed him to pull his vehicle off to the side to wait for his food.

When a cruiser pulled up to the window a second later the employee told the officer, who was just starting his shift and was grabbing a cup of coffee.

A search by the officer found the sleepy driver had cocaine with him.

He is charged with driving while impaired by drug and possession for the purpose of trafficking.