A 20-year-old Salt Lake man said he accidentally shot himself while playing with a friend's gun.

The man was in a car near 1700 S. 1640 West talking to a friend when he opened up the glove compartment and noticed a .22 caliber semiautomatic pistol. He pulled the weapon out and removed the magazine, a police report stated.While he continued to play with the gun, he said he forgot to eject the round in the chamber. He pulled the trigger and shot himself in the finger.

The man was taken to Holy Cross Hospital, where he was treated and later released. Police said there was no explanation given why there was a gun inside the car.