@@ -149,8 +149,8 @@ LL | g1(|_: (), _: ()| {});
149
149
note: required by `g1`
150
150
--> $DIR/anonymous-higher-ranked-lifetime.rs:34:1
151
151
|
152
- LL | fn g1<F>(_: F) where F: Fn(&(), Box<Fn(&())>) {}
153
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
152
+ LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
153
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
154
154
155
155
error[E0631]: type mismatch in closure arguments
156
156
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
@@ -163,8 +163,8 @@ LL | g1(|_: (), _: ()| {});
163
163
note: required by `g1`
164
164
--> $DIR/anonymous-higher-ranked-lifetime.rs:34:1
165
165
|
166
- LL | fn g1<F>(_: F) where F: Fn(&(), Box<Fn(&())>) {}
167
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
166
+ LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
167
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
168
168
169
169
error[E0631]: type mismatch in closure arguments
170
170
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
@@ -205,8 +205,8 @@ LL | g3(|_: (), _: ()| {});
205
205
note: required by `g3`
206
206
--> $DIR/anonymous-higher-ranked-lifetime.rs:36:1
207
207
|
208
- LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<Fn(&())>) {}
209
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
208
+ LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
209
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
210
210
211
211
error[E0631]: type mismatch in closure arguments
212
212
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
@@ -219,8 +219,8 @@ LL | g3(|_: (), _: ()| {});
219
219
note: required by `g3`
220
220
--> $DIR/anonymous-higher-ranked-lifetime.rs:36:1
221
221
|
222
- LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<Fn(&())>) {}
223
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
222
+ LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
223
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
224
224
225
225
error[E0631]: type mismatch in closure arguments
226
226
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
@@ -261,8 +261,8 @@ LL | h1(|_: (), _: (), _: (), _: ()| {});
261
261
note: required by `h1`
262
262
--> $DIR/anonymous-higher-ranked-lifetime.rs:40:1
263
263
|
264
- LL | fn h1<F>(_: F) where F: Fn(&(), Box<Fn(&())>, &(), fn(&(), &())) {}
265
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
264
+ LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
265
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
266
266
267
267
error[E0631]: type mismatch in closure arguments
268
268
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
@@ -275,8 +275,8 @@ LL | h1(|_: (), _: (), _: (), _: ()| {});
275
275
note: required by `h1`
276
276
--> $DIR/anonymous-higher-ranked-lifetime.rs:40:1
277
277
|
278
- LL | fn h1<F>(_: F) where F: Fn(&(), Box<Fn(&())>, &(), fn(&(), &())) {}
279
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
278
+ LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
279
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
280
280
281
281
error[E0631]: type mismatch in closure arguments
282
282
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
@@ -289,8 +289,8 @@ LL | h2(|_: (), _: (), _: (), _: ()| {});
289
289
note: required by `h2`
290
290
--> $DIR/anonymous-higher-ranked-lifetime.rs:41:1
291
291
|
292
- LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<Fn(&())>, &'t0 (), fn(&(), &())) {}
293
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
292
+ LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
293
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
294
294
295
295
error[E0631]: type mismatch in closure arguments
296
296
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
@@ -303,8 +303,8 @@ LL | h2(|_: (), _: (), _: (), _: ()| {});
303
303
note: required by `h2`
304
304
--> $DIR/anonymous-higher-ranked-lifetime.rs:41:1
305
305
|
306
- LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<Fn(&())>, &'t0 (), fn(&(), &())) {}
307
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
306
+ LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
307
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
308
308
309
309
error: aborting due to 22 previous errors
310
310
0 commit comments