@@ -2,8 +2,9 @@ error[E0631]: type mismatch in closure arguments
22 --> $DIR/anonymous-higher-ranked-lifetime.rs:2:5
33 |
44LL | f1(|_: (), _: ()| {});
5- | ^^ -------------- found signature defined here
6- | |
5+ | ^^^--------------^^^^
6+ | | |
7+ | | found signature defined here
78 | expected due to this
89 |
910 = note: expected closure signature `for<'a, 'b> fn(&'a (), &'b ()) -> _`
@@ -22,8 +23,9 @@ error[E0631]: type mismatch in closure arguments
2223 --> $DIR/anonymous-higher-ranked-lifetime.rs:3:5
2324 |
2425LL | f2(|_: (), _: ()| {});
25- | ^^ -------------- found signature defined here
26- | |
26+ | ^^^--------------^^^^
27+ | | |
28+ | | found signature defined here
2729 | expected due to this
2830 |
2931 = note: expected closure signature `for<'a, 'b> fn(&'a (), &'b ()) -> _`
@@ -42,8 +44,9 @@ error[E0631]: type mismatch in closure arguments
4244 --> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
4345 |
4446LL | f3(|_: (), _: ()| {});
45- | ^^ -------------- found signature defined here
46- | |
47+ | ^^^--------------^^^^
48+ | | |
49+ | | found signature defined here
4750 | expected due to this
4851 |
4952 = note: expected closure signature `for<'a> fn(&(), &'a ()) -> _`
@@ -62,8 +65,9 @@ error[E0631]: type mismatch in closure arguments
6265 --> $DIR/anonymous-higher-ranked-lifetime.rs:5:5
6366 |
6467LL | f4(|_: (), _: ()| {});
65- | ^^ -------------- found signature defined here
66- | |
68+ | ^^^--------------^^^^
69+ | | |
70+ | | found signature defined here
6771 | expected due to this
6872 |
6973 = note: expected closure signature `for<'r, 'a> fn(&'a (), &'r ()) -> _`
@@ -82,8 +86,9 @@ error[E0631]: type mismatch in closure arguments
8286 --> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
8387 |
8488LL | f5(|_: (), _: ()| {});
85- | ^^ -------------- found signature defined here
86- | |
89+ | ^^^--------------^^^^
90+ | | |
91+ | | found signature defined here
8792 | expected due to this
8893 |
8994 = note: expected closure signature `for<'r> fn(&'r (), &'r ()) -> _`
@@ -102,8 +107,9 @@ error[E0631]: type mismatch in closure arguments
102107 --> $DIR/anonymous-higher-ranked-lifetime.rs:7:5
103108 |
104109LL | g1(|_: (), _: ()| {});
105- | ^^ -------------- found signature defined here
106- | |
110+ | ^^^--------------^^^^
111+ | | |
112+ | | found signature defined here
107113 | expected due to this
108114 |
109115 = note: expected closure signature `for<'a> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>) -> _`
@@ -122,8 +128,9 @@ error[E0631]: type mismatch in closure arguments
122128 --> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
123129 |
124130LL | g2(|_: (), _: ()| {});
125- | ^^ -------------- found signature defined here
126- | |
131+ | ^^^--------------^^^^
132+ | | |
133+ | | found signature defined here
127134 | expected due to this
128135 |
129136 = note: expected closure signature `for<'a> fn(&'a (), for<'a> fn(&'a ())) -> _`
@@ -142,8 +149,9 @@ error[E0631]: type mismatch in closure arguments
142149 --> $DIR/anonymous-higher-ranked-lifetime.rs:9:5
143150 |
144151LL | g3(|_: (), _: ()| {});
145- | ^^ -------------- found signature defined here
146- | |
152+ | ^^^--------------^^^^
153+ | | |
154+ | | found signature defined here
147155 | expected due to this
148156 |
149157 = note: expected closure signature `for<'s> fn(&'s (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>) -> _`
@@ -162,8 +170,9 @@ error[E0631]: type mismatch in closure arguments
162170 --> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
163171 |
164172LL | g4(|_: (), _: ()| {});
165- | ^^ -------------- found signature defined here
166- | |
173+ | ^^^--------------^^^^
174+ | | |
175+ | | found signature defined here
167176 | expected due to this
168177 |
169178 = note: expected closure signature `for<'a> fn(&'a (), for<'r> fn(&'r ())) -> _`
@@ -182,8 +191,9 @@ error[E0631]: type mismatch in closure arguments
182191 --> $DIR/anonymous-higher-ranked-lifetime.rs:11:5
183192 |
184193LL | h1(|_: (), _: (), _: (), _: ()| {});
185- | ^^ ---------------------------- found signature defined here
186- | |
194+ | ^^^----------------------------^^^^
195+ | | |
196+ | | found signature defined here
187197 | expected due to this
188198 |
189199 = note: expected closure signature `for<'a, 'b> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>, &'b (), for<'a, 'b> fn(&'a (), &'b ())) -> _`
@@ -202,8 +212,9 @@ error[E0631]: type mismatch in closure arguments
202212 --> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
203213 |
204214LL | h2(|_: (), _: (), _: (), _: ()| {});
205- | ^^ ---------------------------- found signature defined here
206- | |
215+ | ^^^----------------------------^^^^
216+ | | |
217+ | | found signature defined here
207218 | expected due to this
208219 |
209220 = note: expected closure signature `for<'t0, 'a> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>, &'t0 (), for<'a, 'b> fn(&'a (), &'b ())) -> _`
0 commit comments