F-16's right gear collapsed during testing of aileron controls. Closer examination revealed a mechanic had mixed up the control lines between ailerons and landing gears, causing the gear to retract when control input was applied to ailerons.
The mechanic was later demoted to a toilet mechanic.