@@ -2,10 +2,12 @@ error[E0631]: type mismatch in closure arguments
22 --> $DIR/anonymous-higher-ranked-lifetime.rs:2:5
33 |
44LL | f1(|_: (), _: ()| {});
5- | ^^ -------------- found signature of `fn((), ()) -> _`
5+ | ^^ -------------- found signature defined here
66 | |
7- | expected signature of `for<'r, 's> fn(&'r (), &'s ()) -> _`
7+ | expected due to this
88 |
9+ = note: expected closure signature `for<'r, 's> fn(&'r (), &'s ()) -> _`
10+ found closure signature `fn((), ()) -> _`
911note: required by a bound in `f1`
1012 --> $DIR/anonymous-higher-ranked-lifetime.rs:16:25
1113 |
@@ -16,10 +18,12 @@ error[E0631]: type mismatch in closure arguments
1618 --> $DIR/anonymous-higher-ranked-lifetime.rs:3:5
1719 |
1820LL | f2(|_: (), _: ()| {});
19- | ^^ -------------- found signature of `fn((), ()) -> _`
21+ | ^^ -------------- found signature defined here
2022 | |
21- | expected signature of `for<'a, 'r> fn(&'a (), &'r ()) -> _`
23+ | expected due to this
2224 |
25+ = note: expected closure signature `for<'a, 'r> fn(&'a (), &'r ()) -> _`
26+ found closure signature `fn((), ()) -> _`
2327note: required by a bound in `f2`
2428 --> $DIR/anonymous-higher-ranked-lifetime.rs:17:25
2529 |
@@ -30,10 +34,12 @@ error[E0631]: type mismatch in closure arguments
3034 --> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
3135 |
3236LL | f3(|_: (), _: ()| {});
33- | ^^ -------------- found signature of `fn((), ()) -> _`
37+ | ^^ -------------- found signature defined here
3438 | |
35- | expected signature of `for<'r> fn(&(), &'r ()) -> _`
39+ | expected due to this
3640 |
41+ = note: expected closure signature `for<'r> fn(&(), &'r ()) -> _`
42+ found closure signature `fn((), ()) -> _`
3743note: required by a bound in `f3`
3844 --> $DIR/anonymous-higher-ranked-lifetime.rs:18:29
3945 |
@@ -44,10 +50,12 @@ error[E0631]: type mismatch in closure arguments
4450 --> $DIR/anonymous-higher-ranked-lifetime.rs:5:5
4551 |
4652LL | f4(|_: (), _: ()| {});
47- | ^^ -------------- found signature of `fn((), ()) -> _`
53+ | ^^ -------------- found signature defined here
4854 | |
49- | expected signature of `for<'s, 'r> fn(&'s (), &'r ()) -> _`
55+ | expected due to this
5056 |
57+ = note: expected closure signature `for<'r, 's> fn(&'s (), &'r ()) -> _`
58+ found closure signature `fn((), ()) -> _`
5159note: required by a bound in `f4`
5260 --> $DIR/anonymous-higher-ranked-lifetime.rs:19:25
5361 |
@@ -58,10 +66,12 @@ error[E0631]: type mismatch in closure arguments
5866 --> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
5967 |
6068LL | f5(|_: (), _: ()| {});
61- | ^^ -------------- found signature of `fn((), ()) -> _`
69+ | ^^ -------------- found signature defined here
6270 | |
63- | expected signature of `for<'r> fn(&'r (), &'r ()) -> _`
71+ | expected due to this
6472 |
73+ = note: expected closure signature `for<'r> fn(&'r (), &'r ()) -> _`
74+ found closure signature `fn((), ()) -> _`
6575note: required by a bound in `f5`
6676 --> $DIR/anonymous-higher-ranked-lifetime.rs:20:25
6777 |
@@ -72,10 +82,12 @@ error[E0631]: type mismatch in closure arguments
7282 --> $DIR/anonymous-higher-ranked-lifetime.rs:7:5
7383 |
7484LL | g1(|_: (), _: ()| {});
75- | ^^ -------------- found signature of `fn((), ()) -> _`
85+ | ^^ -------------- found signature defined here
7686 | |
77- | expected signature of `for<'r> fn(&'r (), Box<(dyn for<'s> Fn(&'s ()) + 'static)>) -> _`
87+ | expected due to this
7888 |
89+ = note: expected closure signature `for<'r> fn(&'r (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>) -> _`
90+ found closure signature `fn((), ()) -> _`
7991note: required by a bound in `g1`
8092 --> $DIR/anonymous-higher-ranked-lifetime.rs:23:25
8193 |
@@ -86,10 +98,12 @@ error[E0631]: type mismatch in closure arguments
8698 --> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
8799 |
88100LL | g2(|_: (), _: ()| {});
89- | ^^ -------------- found signature of `fn((), ()) -> _`
101+ | ^^ -------------- found signature defined here
90102 | |
91- | expected signature of `for<'r> fn(&'r (), for<'s> fn(&'s ())) -> _`
103+ | expected due to this
92104 |
105+ = note: expected closure signature `for<'r> fn(&'r (), for<'r> fn(&'r ())) -> _`
106+ found closure signature `fn((), ()) -> _`
93107note: required by a bound in `g2`
94108 --> $DIR/anonymous-higher-ranked-lifetime.rs:24:25
95109 |
@@ -100,10 +114,12 @@ error[E0631]: type mismatch in closure arguments
100114 --> $DIR/anonymous-higher-ranked-lifetime.rs:9:5
101115 |
102116LL | g3(|_: (), _: ()| {});
103- | ^^ -------------- found signature of `fn((), ()) -> _`
117+ | ^^ -------------- found signature defined here
104118 | |
105- | expected signature of `for<'s> fn(&'s (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>) -> _`
119+ | expected due to this
106120 |
121+ = note: expected closure signature `for<'s> fn(&'s (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>) -> _`
122+ found closure signature `fn((), ()) -> _`
107123note: required by a bound in `g3`
108124 --> $DIR/anonymous-higher-ranked-lifetime.rs:25:25
109125 |
@@ -114,10 +130,12 @@ error[E0631]: type mismatch in closure arguments
114130 --> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
115131 |
116132LL | g4(|_: (), _: ()| {});
117- | ^^ -------------- found signature of `fn((), ()) -> _`
133+ | ^^ -------------- found signature defined here
118134 | |
119- | expected signature of `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
135+ | expected due to this
120136 |
137+ = note: expected closure signature `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
138+ found closure signature `fn((), ()) -> _`
121139note: required by a bound in `g4`
122140 --> $DIR/anonymous-higher-ranked-lifetime.rs:26:25
123141 |
@@ -128,10 +146,12 @@ error[E0631]: type mismatch in closure arguments
128146 --> $DIR/anonymous-higher-ranked-lifetime.rs:11:5
129147 |
130148LL | h1(|_: (), _: (), _: (), _: ()| {});
131- | ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
149+ | ^^ ---------------------------- found signature defined here
132150 | |
133- | expected signature of `for<'r, 's> fn(&'r (), Box<(dyn for<'t0> Fn(&'t0 ()) + 'static)>, &'s (), for<'t0, 't1> fn(&'t0 (), &'t1 ())) -> _`
151+ | expected due to this
134152 |
153+ = note: expected closure signature `for<'r, 's> fn(&'r (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>, &'s (), for<'r, 's> fn(&'r (), &'s ())) -> _`
154+ found closure signature `fn((), (), (), ()) -> _`
135155note: required by a bound in `h1`
136156 --> $DIR/anonymous-higher-ranked-lifetime.rs:29:25
137157 |
@@ -142,10 +162,12 @@ error[E0631]: type mismatch in closure arguments
142162 --> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
143163 |
144164LL | h2(|_: (), _: (), _: (), _: ()| {});
145- | ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
165+ | ^^ ---------------------------- found signature defined here
146166 | |
147- | expected signature of `for<'r, 't0> fn(&'r (), Box<(dyn for<'s> Fn(&'s ()) + 'static)>, &'t0 (), for<'s, 't1> fn(&'s (), &'t1 ())) -> _`
167+ | expected due to this
148168 |
169+ = note: expected closure signature `for<'t0, 'r> fn(&'r (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>, &'t0 (), for<'r, 's> fn(&'r (), &'s ())) -> _`
170+ found closure signature `fn((), (), (), ()) -> _`
149171note: required by a bound in `h2`
150172 --> $DIR/anonymous-higher-ranked-lifetime.rs:30:25
151173 |
0 commit comments