One dose of NNC 90-1170 will be given to subjects with type 2 diabetes only in this study, and the effects of this dose will be compared to a placebo (inactive substance that looks like the active drug). This is a crossover study, which means that subjects will be treated both with NNC 90-1170 and with placebo. The order in which subjects will receive the treatments will be determined by chance (randomly).