@@ -7,7 +7,7 @@ LL | f1(|_: (), _: ()| {});
7
7
| expected signature of `for<'r, 's> fn(&'r (), &'s ()) -> _`
8
8
...
9
9
LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
10
- | -- ---------------------------------- required by `f1`
10
+ | -- ------------ required by this bound in `f1`
11
11
12
12
error[E0631]: type mismatch in closure arguments
13
13
--> $DIR/anonymous-higher-ranked-lifetime.rs:2:5
@@ -18,7 +18,7 @@ LL | f1(|_: (), _: ()| {});
18
18
| expected signature of `fn(&(), &()) -> _`
19
19
...
20
20
LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
21
- | -- ---------------------------------- required by `f1`
21
+ | -- ---------- required by this bound in `f1`
22
22
23
23
error[E0631]: type mismatch in closure arguments
24
24
--> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
@@ -29,7 +29,7 @@ LL | f2(|_: (), _: ()| {});
29
29
| expected signature of `for<'a, 'r> fn(&'a (), &'r ()) -> _`
30
30
...
31
31
LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
32
- | -- --------------------------------------------- required by `f2`
32
+ | -- ----------------------- required by this bound in `f2`
33
33
34
34
error[E0631]: type mismatch in closure arguments
35
35
--> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
@@ -40,7 +40,7 @@ LL | f2(|_: (), _: ()| {});
40
40
| expected signature of `fn(&'a (), &()) -> _`
41
41
...
42
42
LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
43
- | -- --------------------------------------------- required by `f2`
43
+ | -- ------------- required by this bound in `f2`
44
44
45
45
error[E0631]: type mismatch in closure arguments
46
46
--> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
@@ -51,7 +51,7 @@ LL | f3(|_: (), _: ()| {});
51
51
| expected signature of `for<'r> fn(&(), &'r ()) -> _`
52
52
...
53
53
LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
54
- | -- ----------------------------------------- required by `f3`
54
+ | -- --------------- required by this bound in `f3`
55
55
56
56
error[E0631]: type mismatch in closure arguments
57
57
--> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
@@ -62,7 +62,7 @@ LL | f3(|_: (), _: ()| {});
62
62
| expected signature of `fn(&(), &()) -> _`
63
63
...
64
64
LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
65
- | -- ----------------------------------------- required by `f3`
65
+ | -- ------------- required by this bound in `f3`
66
66
67
67
error[E0631]: type mismatch in closure arguments
68
68
--> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
@@ -73,7 +73,7 @@ LL | f4(|_: (), _: ()| {});
73
73
| expected signature of `for<'s, 'r> fn(&'s (), &'r ()) -> _`
74
74
...
75
75
LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
76
- | -- --------------------------------------------- required by `f4`
76
+ | -- ----------------------- required by this bound in `f4`
77
77
78
78
error[E0631]: type mismatch in closure arguments
79
79
--> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
@@ -84,7 +84,7 @@ LL | f4(|_: (), _: ()| {});
84
84
| expected signature of `fn(&(), &'r ()) -> _`
85
85
...
86
86
LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
87
- | -- --------------------------------------------- required by `f4`
87
+ | -- ------------- required by this bound in `f4`
88
88
89
89
error[E0631]: type mismatch in closure arguments
90
90
--> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
@@ -95,7 +95,7 @@ LL | f5(|_: (), _: ()| {});
95
95
| expected signature of `for<'r> fn(&'r (), &'r ()) -> _`
96
96
...
97
97
LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
98
- | -- ------------------------------------------------ required by `f5`
98
+ | -- -------------------------- required by this bound in `f5`
99
99
100
100
error[E0631]: type mismatch in closure arguments
101
101
--> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
@@ -106,7 +106,7 @@ LL | f5(|_: (), _: ()| {});
106
106
| expected signature of `fn(&'r (), &'r ()) -> _`
107
107
...
108
108
LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
109
- | -- ------------------------------------------------ required by `f5`
109
+ | -- ---------------- required by this bound in `f5`
110
110
111
111
error[E0631]: type mismatch in closure arguments
112
112
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
@@ -117,7 +117,7 @@ LL | g1(|_: (), _: ()| {});
117
117
| expected signature of `for<'r> fn(&'r (), std::boxed::Box<(dyn for<'s> std::ops::Fn(&'s ()) + 'static)>) -> _`
118
118
...
119
119
LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
120
- | -- ----------------------------------------------- required by `g1`
120
+ | -- ------------------------- required by this bound in `g1`
121
121
122
122
error[E0631]: type mismatch in closure arguments
123
123
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
@@ -128,7 +128,7 @@ LL | g1(|_: (), _: ()| {});
128
128
| expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _`
129
129
...
130
130
LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
131
- | -- ----------------------------------------------- required by `g1`
131
+ | -- ----------------------- required by this bound in `g1`
132
132
133
133
error[E0631]: type mismatch in closure arguments
134
134
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
@@ -139,7 +139,7 @@ LL | g2(|_: (), _: ()| {});
139
139
| expected signature of `for<'r> fn(&'r (), for<'s> fn(&'s ())) -> _`
140
140
...
141
141
LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
142
- | -- -------------------------------------- required by `g2`
142
+ | -- ---------------- required by this bound in `g2`
143
143
144
144
error[E0631]: type mismatch in closure arguments
145
145
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
@@ -150,7 +150,7 @@ LL | g2(|_: (), _: ()| {});
150
150
| expected signature of `fn(&(), for<'r> fn(&'r ())) -> _`
151
151
...
152
152
LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
153
- | -- -------------------------------------- required by `g2`
153
+ | -- -------------- required by this bound in `g2`
154
154
155
155
error[E0631]: type mismatch in closure arguments
156
156
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
@@ -161,7 +161,7 @@ LL | g3(|_: (), _: ()| {});
161
161
| expected signature of `for<'s> fn(&'s (), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _`
162
162
...
163
163
LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
164
- | -- ---------------------------------------------------------- required by `g3`
164
+ | -- ------------------------------------ required by this bound in `g3`
165
165
166
166
error[E0631]: type mismatch in closure arguments
167
167
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
@@ -172,7 +172,7 @@ LL | g3(|_: (), _: ()| {});
172
172
| expected signature of `fn(&'s (), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _`
173
173
...
174
174
LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
175
- | -- ---------------------------------------------------------- required by `g3`
175
+ | -- -------------------------- required by this bound in `g3`
176
176
177
177
error[E0631]: type mismatch in closure arguments
178
178
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
@@ -183,7 +183,7 @@ LL | g4(|_: (), _: ()| {});
183
183
| expected signature of `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
184
184
...
185
185
LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
186
- | -- ------------------------------------------------- required by `g4`
186
+ | -- --------------------------- required by this bound in `g4`
187
187
188
188
error[E0631]: type mismatch in closure arguments
189
189
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
@@ -194,7 +194,7 @@ LL | g4(|_: (), _: ()| {});
194
194
| expected signature of `fn(&(), for<'r> fn(&'r ())) -> _`
195
195
...
196
196
LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
197
- | -- ------------------------------------------------- required by `g4`
197
+ | -- ------------------------- required by this bound in `g4`
198
198
199
199
error[E0631]: type mismatch in closure arguments
200
200
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
@@ -205,7 +205,7 @@ LL | h1(|_: (), _: (), _: (), _: ()| {});
205
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 ())) -> _`
206
206
...
207
207
LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
208
- | -- ------------------------------------------------------------------ required by `h1`
208
+ | -- -------------------------------------------- required by this bound in `h1`
209
209
210
210
error[E0631]: type mismatch in closure arguments
211
211
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
@@ -216,7 +216,7 @@ LL | h1(|_: (), _: (), _: (), _: ()| {});
216
216
| expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>, &(), for<'r, 's> fn(&'r (), &'s ())) -> _`
217
217
...
218
218
LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
219
- | -- ------------------------------------------------------------------ required by `h1`
219
+ | -- ------------------------------------------ required by this bound in `h1`
220
220
221
221
error[E0631]: type mismatch in closure arguments
222
222
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
@@ -227,7 +227,7 @@ LL | h2(|_: (), _: (), _: (), _: ()| {});
227
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 ())) -> _`
228
228
...
229
229
LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
230
- | -- ------------------------------------------------------------------------------- required by `h2`
230
+ | -- --------------------------------------------------------- required by this bound in `h2`
231
231
232
232
error[E0631]: type mismatch in closure arguments
233
233
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
@@ -238,7 +238,7 @@ LL | h2(|_: (), _: (), _: (), _: ()| {});
238
238
| expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>, &'t0 (), for<'r, 's> fn(&'r (), &'s ())) -> _`
239
239
...
240
240
LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
241
- | -- ------------------------------------------------------------------------------- required by `h2`
241
+ | -- ---------------------------------------------- required by this bound in `h2`
242
242
243
243
error: aborting due to 22 previous errors
244
244
0 commit comments