1
1
error[E0631]: type mismatch in closure arguments
2
- --> $DIR/anonymous-higher-ranked-lifetime.rs:2:8
2
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:2:5
3
3
|
4
4
LL | f1(|_: (), _: ()| {});
5
- | -- --------------^^^
6
- | | |
7
- | | expected due to this
8
- | | found signature defined here
9
- | required by a bound introduced by this call
5
+ | ^^ -------------- found signature defined here
6
+ | |
7
+ | expected due to this
10
8
|
11
9
= note: expected closure signature `for<'r, 's> fn(&'r (), &'s ()) -> _`
12
10
found closure signature `fn((), ()) -> _`
@@ -17,14 +15,12 @@ LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
17
15
| ^^^^^^^^^^^^ required by this bound in `f1`
18
16
19
17
error[E0631]: type mismatch in closure arguments
20
- --> $DIR/anonymous-higher-ranked-lifetime.rs:3:8
18
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:3:5
21
19
|
22
20
LL | f2(|_: (), _: ()| {});
23
- | -- --------------^^^
24
- | | |
25
- | | expected due to this
26
- | | found signature defined here
27
- | required by a bound introduced by this call
21
+ | ^^ -------------- found signature defined here
22
+ | |
23
+ | expected due to this
28
24
|
29
25
= note: expected closure signature `for<'a, 'r> fn(&'a (), &'r ()) -> _`
30
26
found closure signature `fn((), ()) -> _`
@@ -35,14 +31,12 @@ LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
35
31
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f2`
36
32
37
33
error[E0631]: type mismatch in closure arguments
38
- --> $DIR/anonymous-higher-ranked-lifetime.rs:4:8
34
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
39
35
|
40
36
LL | f3(|_: (), _: ()| {});
41
- | -- --------------^^^
42
- | | |
43
- | | expected due to this
44
- | | found signature defined here
45
- | required by a bound introduced by this call
37
+ | ^^ -------------- found signature defined here
38
+ | |
39
+ | expected due to this
46
40
|
47
41
= note: expected closure signature `for<'r> fn(&(), &'r ()) -> _`
48
42
found closure signature `fn((), ()) -> _`
@@ -53,14 +47,12 @@ LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
53
47
| ^^^^^^^^^^^^^^^ required by this bound in `f3`
54
48
55
49
error[E0631]: type mismatch in closure arguments
56
- --> $DIR/anonymous-higher-ranked-lifetime.rs:5:8
50
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:5:5
57
51
|
58
52
LL | f4(|_: (), _: ()| {});
59
- | -- --------------^^^
60
- | | |
61
- | | expected due to this
62
- | | found signature defined here
63
- | required by a bound introduced by this call
53
+ | ^^ -------------- found signature defined here
54
+ | |
55
+ | expected due to this
64
56
|
65
57
= note: expected closure signature `for<'r, 's> fn(&'s (), &'r ()) -> _`
66
58
found closure signature `fn((), ()) -> _`
@@ -71,14 +63,12 @@ LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
71
63
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f4`
72
64
73
65
error[E0631]: type mismatch in closure arguments
74
- --> $DIR/anonymous-higher-ranked-lifetime.rs:6:8
66
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
75
67
|
76
68
LL | f5(|_: (), _: ()| {});
77
- | -- --------------^^^
78
- | | |
79
- | | expected due to this
80
- | | found signature defined here
81
- | required by a bound introduced by this call
69
+ | ^^ -------------- found signature defined here
70
+ | |
71
+ | expected due to this
82
72
|
83
73
= note: expected closure signature `for<'r> fn(&'r (), &'r ()) -> _`
84
74
found closure signature `fn((), ()) -> _`
@@ -89,14 +79,12 @@ LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
89
79
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f5`
90
80
91
81
error[E0631]: type mismatch in closure arguments
92
- --> $DIR/anonymous-higher-ranked-lifetime.rs:7:8
82
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:7:5
93
83
|
94
84
LL | g1(|_: (), _: ()| {});
95
- | -- --------------^^^
96
- | | |
97
- | | expected due to this
98
- | | found signature defined here
99
- | required by a bound introduced by this call
85
+ | ^^ -------------- found signature defined here
86
+ | |
87
+ | expected due to this
100
88
|
101
89
= note: expected closure signature `for<'r> fn(&'r (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>) -> _`
102
90
found closure signature `fn((), ()) -> _`
@@ -107,14 +95,12 @@ LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
107
95
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g1`
108
96
109
97
error[E0631]: type mismatch in closure arguments
110
- --> $DIR/anonymous-higher-ranked-lifetime.rs:8:8
98
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
111
99
|
112
100
LL | g2(|_: (), _: ()| {});
113
- | -- --------------^^^
114
- | | |
115
- | | expected due to this
116
- | | found signature defined here
117
- | required by a bound introduced by this call
101
+ | ^^ -------------- found signature defined here
102
+ | |
103
+ | expected due to this
118
104
|
119
105
= note: expected closure signature `for<'r> fn(&'r (), for<'r> fn(&'r ())) -> _`
120
106
found closure signature `fn((), ()) -> _`
@@ -125,14 +111,12 @@ LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
125
111
| ^^^^^^^^^^^^^^^^ required by this bound in `g2`
126
112
127
113
error[E0631]: type mismatch in closure arguments
128
- --> $DIR/anonymous-higher-ranked-lifetime.rs:9:8
114
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:9:5
129
115
|
130
116
LL | g3(|_: (), _: ()| {});
131
- | -- --------------^^^
132
- | | |
133
- | | expected due to this
134
- | | found signature defined here
135
- | required by a bound introduced by this call
117
+ | ^^ -------------- found signature defined here
118
+ | |
119
+ | expected due to this
136
120
|
137
121
= note: expected closure signature `for<'s> fn(&'s (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>) -> _`
138
122
found closure signature `fn((), ()) -> _`
@@ -143,14 +127,12 @@ LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
143
127
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g3`
144
128
145
129
error[E0631]: type mismatch in closure arguments
146
- --> $DIR/anonymous-higher-ranked-lifetime.rs:10:8
130
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
147
131
|
148
132
LL | g4(|_: (), _: ()| {});
149
- | -- --------------^^^
150
- | | |
151
- | | expected due to this
152
- | | found signature defined here
153
- | required by a bound introduced by this call
133
+ | ^^ -------------- found signature defined here
134
+ | |
135
+ | expected due to this
154
136
|
155
137
= note: expected closure signature `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
156
138
found closure signature `fn((), ()) -> _`
@@ -161,14 +143,12 @@ LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
161
143
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g4`
162
144
163
145
error[E0631]: type mismatch in closure arguments
164
- --> $DIR/anonymous-higher-ranked-lifetime.rs:11:8
146
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:11:5
165
147
|
166
148
LL | h1(|_: (), _: (), _: (), _: ()| {});
167
- | -- ----------------------------^^^
168
- | | |
169
- | | expected due to this
170
- | | found signature defined here
171
- | required by a bound introduced by this call
149
+ | ^^ ---------------------------- found signature defined here
150
+ | |
151
+ | expected due to this
172
152
|
173
153
= note: expected closure signature `for<'r, 's> fn(&'r (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>, &'s (), for<'r, 's> fn(&'r (), &'s ())) -> _`
174
154
found closure signature `fn((), (), (), ()) -> _`
@@ -179,14 +159,12 @@ LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
179
159
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h1`
180
160
181
161
error[E0631]: type mismatch in closure arguments
182
- --> $DIR/anonymous-higher-ranked-lifetime.rs:12:8
162
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
183
163
|
184
164
LL | h2(|_: (), _: (), _: (), _: ()| {});
185
- | -- ----------------------------^^^
186
- | | |
187
- | | expected due to this
188
- | | found signature defined here
189
- | required by a bound introduced by this call
165
+ | ^^ ---------------------------- found signature defined here
166
+ | |
167
+ | expected due to this
190
168
|
191
169
= note: expected closure signature `for<'t0, 'r> fn(&'r (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>, &'t0 (), for<'r, 's> fn(&'r (), &'s ())) -> _`
192
170
found closure signature `fn((), (), (), ()) -> _`
0 commit comments