1
1
error[E0631]: type mismatch in closure arguments
2
- --> $DIR/anonymous-higher-ranked-lifetime.rs:2 :5
2
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:8 :5
3
3
|
4
4
LL | f1(|_: (), _: ()| {});
5
5
| ^^^--------------^^^^
@@ -10,7 +10,7 @@ LL | f1(|_: (), _: ()| {});
10
10
= note: expected closure signature `for<'a, 'b> fn(&'a (), &'b ()) -> _`
11
11
found closure signature `fn((), ()) -> _`
12
12
note: required by a bound in `f1`
13
- --> $DIR/anonymous-higher-ranked-lifetime.rs:16 :25
13
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:22 :25
14
14
|
15
15
LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
16
16
| ^^^^^^^^^^^^ required by this bound in `f1`
@@ -20,7 +20,7 @@ LL | f1(|_: &(), _: &()| {});
20
20
| + +
21
21
22
22
error[E0631]: type mismatch in closure arguments
23
- --> $DIR/anonymous-higher-ranked-lifetime.rs:3 :5
23
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:9 :5
24
24
|
25
25
LL | f2(|_: (), _: ()| {});
26
26
| ^^^--------------^^^^
@@ -31,7 +31,7 @@ LL | f2(|_: (), _: ()| {});
31
31
= note: expected closure signature `for<'a, 'b> fn(&'a (), &'b ()) -> _`
32
32
found closure signature `fn((), ()) -> _`
33
33
note: required by a bound in `f2`
34
- --> $DIR/anonymous-higher-ranked-lifetime.rs:17 :25
34
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:23 :25
35
35
|
36
36
LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
37
37
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f2`
@@ -41,7 +41,7 @@ LL | f2(|_: &(), _: &()| {});
41
41
| + +
42
42
43
43
error[E0631]: type mismatch in closure arguments
44
- --> $DIR/anonymous-higher-ranked-lifetime.rs:4 :5
44
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:10 :5
45
45
|
46
46
LL | f3(|_: (), _: ()| {});
47
47
| ^^^--------------^^^^
@@ -52,7 +52,7 @@ LL | f3(|_: (), _: ()| {});
52
52
= note: expected closure signature `for<'a> fn(&(), &'a ()) -> _`
53
53
found closure signature `fn((), ()) -> _`
54
54
note: required by a bound in `f3`
55
- --> $DIR/anonymous-higher-ranked-lifetime.rs:18 :29
55
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:24 :29
56
56
|
57
57
LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
58
58
| ^^^^^^^^^^^^^^^ required by this bound in `f3`
@@ -62,7 +62,7 @@ LL | f3(|_: &(), _: &()| {});
62
62
| + +
63
63
64
64
error[E0631]: type mismatch in closure arguments
65
- --> $DIR/anonymous-higher-ranked-lifetime.rs:5 :5
65
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:11 :5
66
66
|
67
67
LL | f4(|_: (), _: ()| {});
68
68
| ^^^--------------^^^^
@@ -73,7 +73,7 @@ LL | f4(|_: (), _: ()| {});
73
73
= note: expected closure signature `for<'a, 'r> fn(&'a (), &'r ()) -> _`
74
74
found closure signature `fn((), ()) -> _`
75
75
note: required by a bound in `f4`
76
- --> $DIR/anonymous-higher-ranked-lifetime.rs:19 :25
76
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:25 :25
77
77
|
78
78
LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
79
79
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f4`
@@ -83,7 +83,7 @@ LL | f4(|_: &(), _: &()| {});
83
83
| + +
84
84
85
85
error[E0631]: type mismatch in closure arguments
86
- --> $DIR/anonymous-higher-ranked-lifetime.rs:6 :5
86
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:12 :5
87
87
|
88
88
LL | f5(|_: (), _: ()| {});
89
89
| ^^^--------------^^^^
@@ -94,7 +94,7 @@ LL | f5(|_: (), _: ()| {});
94
94
= note: expected closure signature `for<'r> fn(&'r (), &'r ()) -> _`
95
95
found closure signature `fn((), ()) -> _`
96
96
note: required by a bound in `f5`
97
- --> $DIR/anonymous-higher-ranked-lifetime.rs:20 :25
97
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:26 :25
98
98
|
99
99
LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
100
100
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f5`
@@ -104,7 +104,7 @@ LL | f5(|_: &(), _: &()| {});
104
104
| + +
105
105
106
106
error[E0631]: type mismatch in closure arguments
107
- --> $DIR/anonymous-higher-ranked-lifetime.rs:7 :5
107
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:13 :5
108
108
|
109
109
LL | g1(|_: (), _: ()| {});
110
110
| ^^^--------------^^^^
@@ -115,7 +115,7 @@ LL | g1(|_: (), _: ()| {});
115
115
= note: expected closure signature `for<'a> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>) -> _`
116
116
found closure signature `fn((), ()) -> _`
117
117
note: required by a bound in `g1`
118
- --> $DIR/anonymous-higher-ranked-lifetime.rs:23 :25
118
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:29 :25
119
119
|
120
120
LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
121
121
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g1`
@@ -125,7 +125,7 @@ LL | g1(|_: &(), _: ()| {});
125
125
| +
126
126
127
127
error[E0631]: type mismatch in closure arguments
128
- --> $DIR/anonymous-higher-ranked-lifetime.rs:8 :5
128
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:14 :5
129
129
|
130
130
LL | g2(|_: (), _: ()| {});
131
131
| ^^^--------------^^^^
@@ -136,7 +136,7 @@ LL | g2(|_: (), _: ()| {});
136
136
= note: expected closure signature `for<'a> fn(&'a (), for<'a> fn(&'a ())) -> _`
137
137
found closure signature `fn((), ()) -> _`
138
138
note: required by a bound in `g2`
139
- --> $DIR/anonymous-higher-ranked-lifetime.rs:24 :25
139
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:30 :25
140
140
|
141
141
LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
142
142
| ^^^^^^^^^^^^^^^^ required by this bound in `g2`
@@ -146,7 +146,7 @@ LL | g2(|_: &(), _: ()| {});
146
146
| +
147
147
148
148
error[E0631]: type mismatch in closure arguments
149
- --> $DIR/anonymous-higher-ranked-lifetime.rs:9 :5
149
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:15 :5
150
150
|
151
151
LL | g3(|_: (), _: ()| {});
152
152
| ^^^--------------^^^^
@@ -157,7 +157,7 @@ LL | g3(|_: (), _: ()| {});
157
157
= note: expected closure signature `for<'s> fn(&'s (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>) -> _`
158
158
found closure signature `fn((), ()) -> _`
159
159
note: required by a bound in `g3`
160
- --> $DIR/anonymous-higher-ranked-lifetime.rs:25 :25
160
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:31 :25
161
161
|
162
162
LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
163
163
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g3`
@@ -167,7 +167,7 @@ LL | g3(|_: &(), _: ()| {});
167
167
| +
168
168
169
169
error[E0631]: type mismatch in closure arguments
170
- --> $DIR/anonymous-higher-ranked-lifetime.rs:10 :5
170
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:16 :5
171
171
|
172
172
LL | g4(|_: (), _: ()| {});
173
173
| ^^^--------------^^^^
@@ -178,7 +178,7 @@ LL | g4(|_: (), _: ()| {});
178
178
= note: expected closure signature `for<'a> fn(&'a (), for<'r> fn(&'r ())) -> _`
179
179
found closure signature `fn((), ()) -> _`
180
180
note: required by a bound in `g4`
181
- --> $DIR/anonymous-higher-ranked-lifetime.rs:26 :25
181
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:32 :25
182
182
|
183
183
LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
184
184
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g4`
@@ -188,7 +188,7 @@ LL | g4(|_: &(), _: ()| {});
188
188
| +
189
189
190
190
error[E0631]: type mismatch in closure arguments
191
- --> $DIR/anonymous-higher-ranked-lifetime.rs:11 :5
191
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:17 :5
192
192
|
193
193
LL | h1(|_: (), _: (), _: (), _: ()| {});
194
194
| ^^^----------------------------^^^^
@@ -199,7 +199,7 @@ LL | h1(|_: (), _: (), _: (), _: ()| {});
199
199
= note: expected closure signature `for<'a, 'b> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>, &'b (), for<'a, 'b> fn(&'a (), &'b ())) -> _`
200
200
found closure signature `fn((), (), (), ()) -> _`
201
201
note: required by a bound in `h1`
202
- --> $DIR/anonymous-higher-ranked-lifetime.rs:29 :25
202
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:35 :25
203
203
|
204
204
LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
205
205
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h1`
@@ -209,7 +209,7 @@ LL | h1(|_: &(), _: (), _: &(), _: ()| {});
209
209
| + +
210
210
211
211
error[E0631]: type mismatch in closure arguments
212
- --> $DIR/anonymous-higher-ranked-lifetime.rs:12 :5
212
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:18 :5
213
213
|
214
214
LL | h2(|_: (), _: (), _: (), _: ()| {});
215
215
| ^^^----------------------------^^^^
@@ -220,7 +220,7 @@ LL | h2(|_: (), _: (), _: (), _: ()| {});
220
220
= note: expected closure signature `for<'a, 't0> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>, &'t0 (), for<'a, 'b> fn(&'a (), &'b ())) -> _`
221
221
found closure signature `fn((), (), (), ()) -> _`
222
222
note: required by a bound in `h2`
223
- --> $DIR/anonymous-higher-ranked-lifetime.rs:30 :25
223
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:36 :25
224
224
|
225
225
LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
226
226
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h2`
0 commit comments