1
1
error[E0308]: mismatched types
2
- --> $DIR/issue-54505-no-literals.rs:26 :16
2
+ --> $DIR/issue-54505-no-literals.rs:16 :16
3
3
|
4
4
LL | take_range(std::ops::Range { start: 0, end: 1 });
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -11,7 +11,7 @@ LL | take_range(std::ops::Range { start: 0, end: 1 });
11
11
found type `std::ops::Range<{integer}>`
12
12
13
13
error[E0308]: mismatched types
14
- --> $DIR/issue-54505-no-literals.rs:31 :16
14
+ --> $DIR/issue-54505-no-literals.rs:21 :16
15
15
|
16
16
LL | take_range(::std::ops::Range { start: 0, end: 1 });
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,7 +23,7 @@ LL | take_range(::std::ops::Range { start: 0, end: 1 });
23
23
found type `std::ops::Range<{integer}>`
24
24
25
25
error[E0308]: mismatched types
26
- --> $DIR/issue-54505-no-literals.rs:36 :16
26
+ --> $DIR/issue-54505-no-literals.rs:26 :16
27
27
|
28
28
LL | take_range(std::ops::RangeFrom { start: 1 });
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -35,7 +35,7 @@ LL | take_range(std::ops::RangeFrom { start: 1 });
35
35
found type `std::ops::RangeFrom<{integer}>`
36
36
37
37
error[E0308]: mismatched types
38
- --> $DIR/issue-54505-no-literals.rs:41 :16
38
+ --> $DIR/issue-54505-no-literals.rs:31 :16
39
39
|
40
40
LL | take_range(::std::ops::RangeFrom { start: 1 });
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -47,7 +47,7 @@ LL | take_range(::std::ops::RangeFrom { start: 1 });
47
47
found type `std::ops::RangeFrom<{integer}>`
48
48
49
49
error[E0308]: mismatched types
50
- --> $DIR/issue-54505-no-literals.rs:46 :16
50
+ --> $DIR/issue-54505-no-literals.rs:36 :16
51
51
|
52
52
LL | take_range(std::ops::RangeFull {});
53
53
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -59,7 +59,7 @@ LL | take_range(std::ops::RangeFull {});
59
59
found type `std::ops::RangeFull`
60
60
61
61
error[E0308]: mismatched types
62
- --> $DIR/issue-54505-no-literals.rs:51 :16
62
+ --> $DIR/issue-54505-no-literals.rs:41 :16
63
63
|
64
64
LL | take_range(::std::ops::RangeFull {});
65
65
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -71,7 +71,7 @@ LL | take_range(::std::ops::RangeFull {});
71
71
found type `std::ops::RangeFull`
72
72
73
73
error[E0308]: mismatched types
74
- --> $DIR/issue-54505-no-literals.rs:56 :16
74
+ --> $DIR/issue-54505-no-literals.rs:46 :16
75
75
|
76
76
LL | take_range(std::ops::RangeInclusive::new(0, 1));
77
77
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -83,7 +83,7 @@ LL | take_range(std::ops::RangeInclusive::new(0, 1));
83
83
found type `std::ops::RangeInclusive<{integer}>`
84
84
85
85
error[E0308]: mismatched types
86
- --> $DIR/issue-54505-no-literals.rs:61 :16
86
+ --> $DIR/issue-54505-no-literals.rs:51 :16
87
87
|
88
88
LL | take_range(::std::ops::RangeInclusive::new(0, 1));
89
89
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -95,7 +95,7 @@ LL | take_range(::std::ops::RangeInclusive::new(0, 1));
95
95
found type `std::ops::RangeInclusive<{integer}>`
96
96
97
97
error[E0308]: mismatched types
98
- --> $DIR/issue-54505-no-literals.rs:66 :16
98
+ --> $DIR/issue-54505-no-literals.rs:56 :16
99
99
|
100
100
LL | take_range(std::ops::RangeTo { end: 5 });
101
101
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -107,7 +107,7 @@ LL | take_range(std::ops::RangeTo { end: 5 });
107
107
found type `std::ops::RangeTo<{integer}>`
108
108
109
109
error[E0308]: mismatched types
110
- --> $DIR/issue-54505-no-literals.rs:71 :16
110
+ --> $DIR/issue-54505-no-literals.rs:61 :16
111
111
|
112
112
LL | take_range(::std::ops::RangeTo { end: 5 });
113
113
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -119,7 +119,7 @@ LL | take_range(::std::ops::RangeTo { end: 5 });
119
119
found type `std::ops::RangeTo<{integer}>`
120
120
121
121
error[E0308]: mismatched types
122
- --> $DIR/issue-54505-no-literals.rs:76 :16
122
+ --> $DIR/issue-54505-no-literals.rs:66 :16
123
123
|
124
124
LL | take_range(std::ops::RangeToInclusive { end: 5 });
125
125
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -131,7 +131,7 @@ LL | take_range(std::ops::RangeToInclusive { end: 5 });
131
131
found type `std::ops::RangeToInclusive<{integer}>`
132
132
133
133
error[E0308]: mismatched types
134
- --> $DIR/issue-54505-no-literals.rs:81 :16
134
+ --> $DIR/issue-54505-no-literals.rs:71 :16
135
135
|
136
136
LL | take_range(::std::ops::RangeToInclusive { end: 5 });
137
137
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments