Early impairment in left ventricular longitudinal systolic function is associated with an increased risk of incident atrial fibrillation in patients with type 2 diabetes.