A Tennessee man was charged with felony child neglect Wednesday after he allegedly left his 23-month-old great nephew unattended inside a hot car in a fast food restaurant parking lot and went to buy cocaine, police said.

Shawn Barber, 42, left the child inside his vehicle outside a Jack in the Box in Nashville on Wednesday afternoon, authorities said. Employees brought the child inside the restaurant, telling police they found him unattended in the vehicle, which had the windows rolled down and keys still inside, FOX 17 Nashville reported.