['diabetes', 'diabetes mellitus, type 2']
['semaglutide', 'placebo']

        Inclusion Criteria:

          -  Age: 18-64 years (both inclusive) at the time of signing the informed consent

          -  For subjects with type 2 diabetes:

          -  Male and female subjects diagnosed with type 2 diabetes

          -  Treated with diet and exercise and/or metformin monotherapy. Metformin dose should be
             unchanged in a period of 30 days prior to screening

          -  Body Mass Index (BMI) between 20.0-35.0 kg/m^2 (both inclusive)

          -  Glycosylated haemoglobin (HbA1c) between 6.5-9.0 % (both inclusive)

          -  For healthy control group for graded glucose infusion:

          -  Healthy male and female subjects

          -  BMI between 24.0-32.0 kg/m^2 (both inclusive)

          -  HbA1c less than 6.5 %

        Exclusion Criteria:

          -  Female who is pregnant, breast-feeding or intends to become pregnant or is of child
             bearing potential and not using an adequate contraceptive method. Women of child
             bearing potential must use an effective method of birth control for the duration of
             the trial and for subjects with type 2 diabetes for 5 weeks following the last dose of
             semaglutide. Only highly effective methods of birth control are accepted (i.e. one
             that results in less than 1% per year failure rate when used consistently and
             correctly such as implants, injectables, combined oral contraceptives, some
             intrauterine devices), or sexual abstinence or vasectomised partner

          -  Any clinically significant disease history, in the opinion of the investigator, or
             systemic or organ disease including: cardiac, pulmonary, gastrointestinal, hepatic,
             neurologic, renal, genitourinary and endocrine, dermatologic or hematologic

          -  Use of any prescription or non-prescription medication which could interfere with
             trial pharmacokinetic or pharmacodynamic results, as judged by the investigator or
             specifically: a) current treatment with systemic (oral or i.v.) corticosteroids,
             non-selective betablockers, b) thyroid hormones are not allowed unless the use of
             these have been stable during the past 2 month prior to screening

          -  History of drug/chemical substance abuse within 1 year prior to screening, or a
             positive result in the urine drug test

          -  History of alcohol abuse within 1 year prior to screening, or a positive result in the
             alcohol breath test

          -  Smoker (defined as a subject who is smoking more than 5 cigarettes or the equivalent
             per day)

          -  Not able or willing to refrain from smoking and use of nicotine gum or transdermal
             nicotine patches during the inpatient period
      