@@ -5,12 +5,9 @@ LL | f1(|_: (), _: ()| {});
5
5
| ^^ -------------- found signature of `fn((), ()) -> _`
6
6
| |
7
7
| expected signature of `for<'r, 's> fn(&'r (), &'s ()) -> _`
8
- |
9
- note: required by `f1`
10
- --> $DIR/anonymous-higher-ranked-lifetime.rs:27:1
11
- |
8
+ ...
12
9
LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
13
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10
+ | ------------------------------------ required by `f1`
14
11
15
12
error[E0631]: type mismatch in closure arguments
16
13
--> $DIR/anonymous-higher-ranked-lifetime.rs:2:5
@@ -19,12 +16,9 @@ LL | f1(|_: (), _: ()| {});
19
16
| ^^ -------------- found signature of `fn((), ()) -> _`
20
17
| |
21
18
| expected signature of `fn(&(), &()) -> _`
22
- |
23
- note: required by `f1`
24
- --> $DIR/anonymous-higher-ranked-lifetime.rs:27:1
25
- |
19
+ ...
26
20
LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
27
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21
+ | ------------------------------------ required by `f1`
28
22
29
23
error[E0631]: type mismatch in closure arguments
30
24
--> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
@@ -33,12 +27,9 @@ LL | f2(|_: (), _: ()| {});
33
27
| ^^ -------------- found signature of `fn((), ()) -> _`
34
28
| |
35
29
| expected signature of `for<'a, 'r> fn(&'a (), &'r ()) -> _`
36
- |
37
- note: required by `f2`
38
- --> $DIR/anonymous-higher-ranked-lifetime.rs:28:1
39
- |
30
+ ...
40
31
LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
41
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
+ | ----------------------------------------------- required by `f2`
42
33
43
34
error[E0631]: type mismatch in closure arguments
44
35
--> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
@@ -47,12 +38,9 @@ LL | f2(|_: (), _: ()| {});
47
38
| ^^ -------------- found signature of `fn((), ()) -> _`
48
39
| |
49
40
| expected signature of `fn(&'a (), &()) -> _`
50
- |
51
- note: required by `f2`
52
- --> $DIR/anonymous-higher-ranked-lifetime.rs:28:1
53
- |
41
+ ...
54
42
LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
55
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
+ | ----------------------------------------------- required by `f2`
56
44
57
45
error[E0631]: type mismatch in closure arguments
58
46
--> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
@@ -61,12 +49,9 @@ LL | f3(|_: (), _: ()| {});
61
49
| ^^ -------------- found signature of `fn((), ()) -> _`
62
50
| |
63
51
| expected signature of `for<'r> fn(&(), &'r ()) -> _`
64
- |
65
- note: required by `f3`
66
- --> $DIR/anonymous-higher-ranked-lifetime.rs:29:1
67
- |
52
+ ...
68
53
LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
69
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54
+ | ------------------------------------------- required by `f3`
70
55
71
56
error[E0631]: type mismatch in closure arguments
72
57
--> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
@@ -75,12 +60,9 @@ LL | f3(|_: (), _: ()| {});
75
60
| ^^ -------------- found signature of `fn((), ()) -> _`
76
61
| |
77
62
| expected signature of `fn(&(), &()) -> _`
78
- |
79
- note: required by `f3`
80
- --> $DIR/anonymous-higher-ranked-lifetime.rs:29:1
81
- |
63
+ ...
82
64
LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
83
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65
+ | ------------------------------------------- required by `f3`
84
66
85
67
error[E0631]: type mismatch in closure arguments
86
68
--> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
@@ -89,12 +71,9 @@ LL | f4(|_: (), _: ()| {});
89
71
| ^^ -------------- found signature of `fn((), ()) -> _`
90
72
| |
91
73
| expected signature of `for<'s, 'r> fn(&'s (), &'r ()) -> _`
92
- |
93
- note: required by `f4`
94
- --> $DIR/anonymous-higher-ranked-lifetime.rs:30:1
95
- |
74
+ ...
96
75
LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
97
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
76
+ | ----------------------------------------------- required by `f4`
98
77
99
78
error[E0631]: type mismatch in closure arguments
100
79
--> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
@@ -103,12 +82,9 @@ LL | f4(|_: (), _: ()| {});
103
82
| ^^ -------------- found signature of `fn((), ()) -> _`
104
83
| |
105
84
| expected signature of `fn(&(), &'r ()) -> _`
106
- |
107
- note: required by `f4`
108
- --> $DIR/anonymous-higher-ranked-lifetime.rs:30:1
109
- |
85
+ ...
110
86
LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
111
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87
+ | ----------------------------------------------- required by `f4`
112
88
113
89
error[E0631]: type mismatch in closure arguments
114
90
--> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
@@ -117,12 +93,9 @@ LL | f5(|_: (), _: ()| {});
117
93
| ^^ -------------- found signature of `fn((), ()) -> _`
118
94
| |
119
95
| expected signature of `for<'r> fn(&'r (), &'r ()) -> _`
120
- |
121
- note: required by `f5`
122
- --> $DIR/anonymous-higher-ranked-lifetime.rs:31:1
123
- |
96
+ ...
124
97
LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
125
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98
+ | -------------------------------------------------- required by `f5`
126
99
127
100
error[E0631]: type mismatch in closure arguments
128
101
--> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
@@ -131,12 +104,9 @@ LL | f5(|_: (), _: ()| {});
131
104
| ^^ -------------- found signature of `fn((), ()) -> _`
132
105
| |
133
106
| expected signature of `fn(&'r (), &'r ()) -> _`
134
- |
135
- note: required by `f5`
136
- --> $DIR/anonymous-higher-ranked-lifetime.rs:31:1
137
- |
107
+ ...
138
108
LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
139
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
109
+ | -------------------------------------------------- required by `f5`
140
110
141
111
error[E0631]: type mismatch in closure arguments
142
112
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
@@ -145,12 +115,9 @@ LL | g1(|_: (), _: ()| {});
145
115
| ^^ -------------- found signature of `fn((), ()) -> _`
146
116
| |
147
117
| expected signature of `for<'r> fn(&'r (), std::boxed::Box<(dyn for<'s> std::ops::Fn(&'s ()) + 'static)>) -> _`
148
- |
149
- note: required by `g1`
150
- --> $DIR/anonymous-higher-ranked-lifetime.rs:34:1
151
- |
118
+ ...
152
119
LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
153
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120
+ | ------------------------------------------------- required by `g1`
154
121
155
122
error[E0631]: type mismatch in closure arguments
156
123
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
@@ -159,12 +126,9 @@ LL | g1(|_: (), _: ()| {});
159
126
| ^^ -------------- found signature of `fn((), ()) -> _`
160
127
| |
161
128
| expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _`
162
- |
163
- note: required by `g1`
164
- --> $DIR/anonymous-higher-ranked-lifetime.rs:34:1
165
- |
129
+ ...
166
130
LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
167
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131
+ | ------------------------------------------------- required by `g1`
168
132
169
133
error[E0631]: type mismatch in closure arguments
170
134
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
@@ -173,12 +137,9 @@ LL | g2(|_: (), _: ()| {});
173
137
| ^^ -------------- found signature of `fn((), ()) -> _`
174
138
| |
175
139
| expected signature of `for<'r> fn(&'r (), for<'s> fn(&'s ())) -> _`
176
- |
177
- note: required by `g2`
178
- --> $DIR/anonymous-higher-ranked-lifetime.rs:35:1
179
- |
140
+ ...
180
141
LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
181
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142
+ | ---------------------------------------- required by `g2`
182
143
183
144
error[E0631]: type mismatch in closure arguments
184
145
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
@@ -187,12 +148,9 @@ LL | g2(|_: (), _: ()| {});
187
148
| ^^ -------------- found signature of `fn((), ()) -> _`
188
149
| |
189
150
| expected signature of `fn(&(), for<'r> fn(&'r ())) -> _`
190
- |
191
- note: required by `g2`
192
- --> $DIR/anonymous-higher-ranked-lifetime.rs:35:1
193
- |
151
+ ...
194
152
LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
195
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
153
+ | ---------------------------------------- required by `g2`
196
154
197
155
error[E0631]: type mismatch in closure arguments
198
156
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
@@ -201,12 +159,9 @@ LL | g3(|_: (), _: ()| {});
201
159
| ^^ -------------- found signature of `fn((), ()) -> _`
202
160
| |
203
161
| expected signature of `for<'s> fn(&'s (), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _`
204
- |
205
- note: required by `g3`
206
- --> $DIR/anonymous-higher-ranked-lifetime.rs:36:1
207
- |
162
+ ...
208
163
LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
209
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
164
+ | ------------------------------------------------------------ required by `g3`
210
165
211
166
error[E0631]: type mismatch in closure arguments
212
167
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
@@ -215,12 +170,9 @@ LL | g3(|_: (), _: ()| {});
215
170
| ^^ -------------- found signature of `fn((), ()) -> _`
216
171
| |
217
172
| expected signature of `fn(&'s (), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _`
218
- |
219
- note: required by `g3`
220
- --> $DIR/anonymous-higher-ranked-lifetime.rs:36:1
221
- |
173
+ ...
222
174
LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
223
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175
+ | ------------------------------------------------------------ required by `g3`
224
176
225
177
error[E0631]: type mismatch in closure arguments
226
178
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
@@ -229,12 +181,9 @@ LL | g4(|_: (), _: ()| {});
229
181
| ^^ -------------- found signature of `fn((), ()) -> _`
230
182
| |
231
183
| expected signature of `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
232
- |
233
- note: required by `g4`
234
- --> $DIR/anonymous-higher-ranked-lifetime.rs:37:1
235
- |
184
+ ...
236
185
LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
237
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
186
+ | --------------------------------------------------- required by `g4`
238
187
239
188
error[E0631]: type mismatch in closure arguments
240
189
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
@@ -243,12 +192,9 @@ LL | g4(|_: (), _: ()| {});
243
192
| ^^ -------------- found signature of `fn((), ()) -> _`
244
193
| |
245
194
| expected signature of `fn(&(), for<'r> fn(&'r ())) -> _`
246
- |
247
- note: required by `g4`
248
- --> $DIR/anonymous-higher-ranked-lifetime.rs:37:1
249
- |
195
+ ...
250
196
LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
251
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
197
+ | --------------------------------------------------- required by `g4`
252
198
253
199
error[E0631]: type mismatch in closure arguments
254
200
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
@@ -257,12 +203,9 @@ LL | h1(|_: (), _: (), _: (), _: ()| {});
257
203
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
258
204
| |
259
205
| expected signature of `for<'r, 's> fn(&'r (), std::boxed::Box<(dyn for<'t0> std::ops::Fn(&'t0 ()) + 'static)>, &'s (), for<'t0, 't1> fn(&'t0 (), &'t1 ())) -> _`
260
- |
261
- note: required by `h1`
262
- --> $DIR/anonymous-higher-ranked-lifetime.rs:40:1
263
- |
206
+ ...
264
207
LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
265
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
208
+ | -------------------------------------------------------------------- required by `h1`
266
209
267
210
error[E0631]: type mismatch in closure arguments
268
211
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
@@ -271,12 +214,9 @@ LL | h1(|_: (), _: (), _: (), _: ()| {});
271
214
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
272
215
| |
273
216
| expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>, &(), for<'r, 's> fn(&'r (), &'s ())) -> _`
274
- |
275
- note: required by `h1`
276
- --> $DIR/anonymous-higher-ranked-lifetime.rs:40:1
277
- |
217
+ ...
278
218
LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
279
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
219
+ | -------------------------------------------------------------------- required by `h1`
280
220
281
221
error[E0631]: type mismatch in closure arguments
282
222
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
@@ -285,12 +225,9 @@ LL | h2(|_: (), _: (), _: (), _: ()| {});
285
225
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
286
226
| |
287
227
| expected signature of `for<'r, 't0> fn(&'r (), std::boxed::Box<(dyn for<'s> std::ops::Fn(&'s ()) + 'static)>, &'t0 (), for<'s, 't1> fn(&'s (), &'t1 ())) -> _`
288
- |
289
- note: required by `h2`
290
- --> $DIR/anonymous-higher-ranked-lifetime.rs:41:1
291
- |
228
+ ...
292
229
LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
293
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
230
+ | --------------------------------------------------------------------------------- required by `h2`
294
231
295
232
error[E0631]: type mismatch in closure arguments
296
233
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
@@ -299,12 +236,9 @@ LL | h2(|_: (), _: (), _: (), _: ()| {});
299
236
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
300
237
| |
301
238
| expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>, &'t0 (), for<'r, 's> fn(&'r (), &'s ())) -> _`
302
- |
303
- note: required by `h2`
304
- --> $DIR/anonymous-higher-ranked-lifetime.rs:41:1
305
- |
239
+ ...
306
240
LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
307
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
241
+ | --------------------------------------------------------------------------------- required by `h2`
308
242
309
243
error: aborting due to 22 previous errors
310
244
0 commit comments