@@ -2,8 +2,9 @@ error[E0631]: type mismatch in closure arguments
2
2
--> $DIR/anonymous-higher-ranked-lifetime.rs:2:5
3
3
|
4
4
LL | f1(|_: (), _: ()| {});
5
- | ^^ -------------- found signature defined here
6
- | |
5
+ | ^^^--------------^^^^
6
+ | | |
7
+ | | found signature defined here
7
8
| expected due to this
8
9
|
9
10
= note: expected closure signature `for<'a, 'b> fn(&'a (), &'b ()) -> _`
@@ -22,8 +23,9 @@ error[E0631]: type mismatch in closure arguments
22
23
--> $DIR/anonymous-higher-ranked-lifetime.rs:3:5
23
24
|
24
25
LL | f2(|_: (), _: ()| {});
25
- | ^^ -------------- found signature defined here
26
- | |
26
+ | ^^^--------------^^^^
27
+ | | |
28
+ | | found signature defined here
27
29
| expected due to this
28
30
|
29
31
= note: expected closure signature `for<'a, 'b> fn(&'a (), &'b ()) -> _`
@@ -42,8 +44,9 @@ error[E0631]: type mismatch in closure arguments
42
44
--> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
43
45
|
44
46
LL | f3(|_: (), _: ()| {});
45
- | ^^ -------------- found signature defined here
46
- | |
47
+ | ^^^--------------^^^^
48
+ | | |
49
+ | | found signature defined here
47
50
| expected due to this
48
51
|
49
52
= note: expected closure signature `for<'a> fn(&(), &'a ()) -> _`
@@ -62,8 +65,9 @@ error[E0631]: type mismatch in closure arguments
62
65
--> $DIR/anonymous-higher-ranked-lifetime.rs:5:5
63
66
|
64
67
LL | f4(|_: (), _: ()| {});
65
- | ^^ -------------- found signature defined here
66
- | |
68
+ | ^^^--------------^^^^
69
+ | | |
70
+ | | found signature defined here
67
71
| expected due to this
68
72
|
69
73
= note: expected closure signature `for<'r, 'a> fn(&'a (), &'r ()) -> _`
@@ -82,8 +86,9 @@ error[E0631]: type mismatch in closure arguments
82
86
--> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
83
87
|
84
88
LL | f5(|_: (), _: ()| {});
85
- | ^^ -------------- found signature defined here
86
- | |
89
+ | ^^^--------------^^^^
90
+ | | |
91
+ | | found signature defined here
87
92
| expected due to this
88
93
|
89
94
= note: expected closure signature `for<'r> fn(&'r (), &'r ()) -> _`
@@ -102,8 +107,9 @@ error[E0631]: type mismatch in closure arguments
102
107
--> $DIR/anonymous-higher-ranked-lifetime.rs:7:5
103
108
|
104
109
LL | g1(|_: (), _: ()| {});
105
- | ^^ -------------- found signature defined here
106
- | |
110
+ | ^^^--------------^^^^
111
+ | | |
112
+ | | found signature defined here
107
113
| expected due to this
108
114
|
109
115
= note: expected closure signature `for<'a> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>) -> _`
@@ -122,8 +128,9 @@ error[E0631]: type mismatch in closure arguments
122
128
--> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
123
129
|
124
130
LL | g2(|_: (), _: ()| {});
125
- | ^^ -------------- found signature defined here
126
- | |
131
+ | ^^^--------------^^^^
132
+ | | |
133
+ | | found signature defined here
127
134
| expected due to this
128
135
|
129
136
= note: expected closure signature `for<'a> fn(&'a (), for<'a> fn(&'a ())) -> _`
@@ -142,8 +149,9 @@ error[E0631]: type mismatch in closure arguments
142
149
--> $DIR/anonymous-higher-ranked-lifetime.rs:9:5
143
150
|
144
151
LL | g3(|_: (), _: ()| {});
145
- | ^^ -------------- found signature defined here
146
- | |
152
+ | ^^^--------------^^^^
153
+ | | |
154
+ | | found signature defined here
147
155
| expected due to this
148
156
|
149
157
= note: expected closure signature `for<'s> fn(&'s (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>) -> _`
@@ -162,8 +170,9 @@ error[E0631]: type mismatch in closure arguments
162
170
--> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
163
171
|
164
172
LL | g4(|_: (), _: ()| {});
165
- | ^^ -------------- found signature defined here
166
- | |
173
+ | ^^^--------------^^^^
174
+ | | |
175
+ | | found signature defined here
167
176
| expected due to this
168
177
|
169
178
= note: expected closure signature `for<'a> fn(&'a (), for<'r> fn(&'r ())) -> _`
@@ -182,8 +191,9 @@ error[E0631]: type mismatch in closure arguments
182
191
--> $DIR/anonymous-higher-ranked-lifetime.rs:11:5
183
192
|
184
193
LL | h1(|_: (), _: (), _: (), _: ()| {});
185
- | ^^ ---------------------------- found signature defined here
186
- | |
194
+ | ^^^----------------------------^^^^
195
+ | | |
196
+ | | found signature defined here
187
197
| expected due to this
188
198
|
189
199
= note: expected closure signature `for<'a, 'b> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>, &'b (), for<'a, 'b> fn(&'a (), &'b ())) -> _`
@@ -202,8 +212,9 @@ error[E0631]: type mismatch in closure arguments
202
212
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
203
213
|
204
214
LL | h2(|_: (), _: (), _: (), _: ()| {});
205
- | ^^ ---------------------------- found signature defined here
206
- | |
215
+ | ^^^----------------------------^^^^
216
+ | | |
217
+ | | found signature defined here
207
218
| expected due to this
208
219
|
209
220
= note: expected closure signature `for<'t0, 'a> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>, &'t0 (), for<'a, 'b> fn(&'a (), &'b ())) -> _`
0 commit comments