11error[E0308]: mismatched types
2- --> $DIR/issue-54505-no-literals.rs:26 :16
2+ --> $DIR/issue-54505-no-literals.rs:16 :16
33 |
44LL | take_range(std::ops::Range { start: 0, end: 1 });
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -11,7 +11,7 @@ LL | take_range(std::ops::Range { start: 0, end: 1 });
1111 found type `std::ops::Range<{integer}>`
1212
1313error[E0308]: mismatched types
14- --> $DIR/issue-54505-no-literals.rs:31 :16
14+ --> $DIR/issue-54505-no-literals.rs:21 :16
1515 |
1616LL | take_range(::std::ops::Range { start: 0, end: 1 });
1717 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,7 +23,7 @@ LL | take_range(::std::ops::Range { start: 0, end: 1 });
2323 found type `std::ops::Range<{integer}>`
2424
2525error[E0308]: mismatched types
26- --> $DIR/issue-54505-no-literals.rs:36 :16
26+ --> $DIR/issue-54505-no-literals.rs:26 :16
2727 |
2828LL | take_range(std::ops::RangeFrom { start: 1 });
2929 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -35,7 +35,7 @@ LL | take_range(std::ops::RangeFrom { start: 1 });
3535 found type `std::ops::RangeFrom<{integer}>`
3636
3737error[E0308]: mismatched types
38- --> $DIR/issue-54505-no-literals.rs:41 :16
38+ --> $DIR/issue-54505-no-literals.rs:31 :16
3939 |
4040LL | take_range(::std::ops::RangeFrom { start: 1 });
4141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -47,7 +47,7 @@ LL | take_range(::std::ops::RangeFrom { start: 1 });
4747 found type `std::ops::RangeFrom<{integer}>`
4848
4949error[E0308]: mismatched types
50- --> $DIR/issue-54505-no-literals.rs:46 :16
50+ --> $DIR/issue-54505-no-literals.rs:36 :16
5151 |
5252LL | take_range(std::ops::RangeFull {});
5353 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -59,7 +59,7 @@ LL | take_range(std::ops::RangeFull {});
5959 found type `std::ops::RangeFull`
6060
6161error[E0308]: mismatched types
62- --> $DIR/issue-54505-no-literals.rs:51 :16
62+ --> $DIR/issue-54505-no-literals.rs:41 :16
6363 |
6464LL | take_range(::std::ops::RangeFull {});
6565 | ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -71,7 +71,7 @@ LL | take_range(::std::ops::RangeFull {});
7171 found type `std::ops::RangeFull`
7272
7373error[E0308]: mismatched types
74- --> $DIR/issue-54505-no-literals.rs:56 :16
74+ --> $DIR/issue-54505-no-literals.rs:46 :16
7575 |
7676LL | take_range(std::ops::RangeInclusive::new(0, 1));
7777 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -83,7 +83,7 @@ LL | take_range(std::ops::RangeInclusive::new(0, 1));
8383 found type `std::ops::RangeInclusive<{integer}>`
8484
8585error[E0308]: mismatched types
86- --> $DIR/issue-54505-no-literals.rs:61 :16
86+ --> $DIR/issue-54505-no-literals.rs:51 :16
8787 |
8888LL | take_range(::std::ops::RangeInclusive::new(0, 1));
8989 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -95,7 +95,7 @@ LL | take_range(::std::ops::RangeInclusive::new(0, 1));
9595 found type `std::ops::RangeInclusive<{integer}>`
9696
9797error[E0308]: mismatched types
98- --> $DIR/issue-54505-no-literals.rs:66 :16
98+ --> $DIR/issue-54505-no-literals.rs:56 :16
9999 |
100100LL | take_range(std::ops::RangeTo { end: 5 });
101101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -107,7 +107,7 @@ LL | take_range(std::ops::RangeTo { end: 5 });
107107 found type `std::ops::RangeTo<{integer}>`
108108
109109error[E0308]: mismatched types
110- --> $DIR/issue-54505-no-literals.rs:71 :16
110+ --> $DIR/issue-54505-no-literals.rs:61 :16
111111 |
112112LL | take_range(::std::ops::RangeTo { end: 5 });
113113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -119,7 +119,7 @@ LL | take_range(::std::ops::RangeTo { end: 5 });
119119 found type `std::ops::RangeTo<{integer}>`
120120
121121error[E0308]: mismatched types
122- --> $DIR/issue-54505-no-literals.rs:76 :16
122+ --> $DIR/issue-54505-no-literals.rs:66 :16
123123 |
124124LL | take_range(std::ops::RangeToInclusive { end: 5 });
125125 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -131,7 +131,7 @@ LL | take_range(std::ops::RangeToInclusive { end: 5 });
131131 found type `std::ops::RangeToInclusive<{integer}>`
132132
133133error[E0308]: mismatched types
134- --> $DIR/issue-54505-no-literals.rs:81 :16
134+ --> $DIR/issue-54505-no-literals.rs:71 :16
135135 |
136136LL | take_range(::std::ops::RangeToInclusive { end: 5 });
137137 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments