This trial is conducted in Europe and the United States of America (USA). The aim of the trial is to compare the safety and efficacy of insulin degludec (IDeg) and insulin glargine (IGlar), both with insulin aspart (IAsp) as mealtime insulin in subjects with type 1 diabetes.