Recently, a Dutch F-16 managed to shoot itself with its own gun during maneuvers.
The rounds have a muzzle velocity of 3,450 feet per second (1050 meters per second). That is speed boosted initially by the aircraft itself, but atmospheric drag slows the shells down eventually. And if a pilot accelerates and maneuvers in the wrong way after firing the cannon, the aircraft could be unexpectedly reunited with its recently departed rounds.
Click through; this is also not the first time something like this has happened. In fact, the first time was in 1956.
Also hilarious: the gun in question, a 20mm Vulcan cannon, can fire 6,000 rounds a minute — but the F-16 only carries 511 rounds, or about 5 seconds of fire.