@@ -7,7 +7,7 @@ LL | f1(|_: (), _: ()| {});
77 | expected signature of `for<'r, 's> fn(&'r (), &'s ()) -> _`
88...
99LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
10- | -- ------------ required by this bound in `f1`
10+ | ------------ required by this bound in `f1`
1111
1212error[E0631]: type mismatch in closure arguments
1313 --> $DIR/anonymous-higher-ranked-lifetime.rs:3:5
@@ -18,7 +18,7 @@ LL | f2(|_: (), _: ()| {});
1818 | expected signature of `for<'a, 'r> fn(&'a (), &'r ()) -> _`
1919...
2020LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
21- | -- ----------------------- required by this bound in `f2`
21+ | ----------------------- required by this bound in `f2`
2222
2323error[E0631]: type mismatch in closure arguments
2424 --> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
@@ -29,7 +29,7 @@ LL | f3(|_: (), _: ()| {});
2929 | expected signature of `for<'r> fn(&(), &'r ()) -> _`
3030...
3131LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
32- | -- --------------- required by this bound in `f3`
32+ | --------------- required by this bound in `f3`
3333
3434error[E0631]: type mismatch in closure arguments
3535 --> $DIR/anonymous-higher-ranked-lifetime.rs:5:5
@@ -40,7 +40,7 @@ LL | f4(|_: (), _: ()| {});
4040 | expected signature of `for<'s, 'r> fn(&'s (), &'r ()) -> _`
4141...
4242LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
43- | -- ----------------------- required by this bound in `f4`
43+ | ----------------------- required by this bound in `f4`
4444
4545error[E0631]: type mismatch in closure arguments
4646 --> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
@@ -51,7 +51,7 @@ LL | f5(|_: (), _: ()| {});
5151 | expected signature of `for<'r> fn(&'r (), &'r ()) -> _`
5252...
5353LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
54- | -- -------------------------- required by this bound in `f5`
54+ | -------------------------- required by this bound in `f5`
5555
5656error[E0631]: type mismatch in closure arguments
5757 --> $DIR/anonymous-higher-ranked-lifetime.rs:7:5
@@ -62,7 +62,7 @@ LL | g1(|_: (), _: ()| {});
6262 | expected signature of `for<'r> fn(&'r (), std::boxed::Box<(dyn for<'s> std::ops::Fn(&'s ()) + 'static)>) -> _`
6363...
6464LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
65- | -- ------------------------- required by this bound in `g1`
65+ | ------------------------- required by this bound in `g1`
6666
6767error[E0631]: type mismatch in closure arguments
6868 --> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
@@ -73,7 +73,7 @@ LL | g2(|_: (), _: ()| {});
7373 | expected signature of `for<'r> fn(&'r (), for<'s> fn(&'s ())) -> _`
7474...
7575LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
76- | -- ---------------- required by this bound in `g2`
76+ | ---------------- required by this bound in `g2`
7777
7878error[E0631]: type mismatch in closure arguments
7979 --> $DIR/anonymous-higher-ranked-lifetime.rs:9:5
@@ -84,7 +84,7 @@ LL | g3(|_: (), _: ()| {});
8484 | expected signature of `for<'s> fn(&'s (), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _`
8585...
8686LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
87- | -- ------------------------------------ required by this bound in `g3`
87+ | ------------------------------------ required by this bound in `g3`
8888
8989error[E0631]: type mismatch in closure arguments
9090 --> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
@@ -95,7 +95,7 @@ LL | g4(|_: (), _: ()| {});
9595 | expected signature of `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
9696...
9797LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
98- | -- --------------------------- required by this bound in `g4`
98+ | --------------------------- required by this bound in `g4`
9999
100100error[E0631]: type mismatch in closure arguments
101101 --> $DIR/anonymous-higher-ranked-lifetime.rs:11:5
@@ -106,7 +106,7 @@ LL | h1(|_: (), _: (), _: (), _: ()| {});
106106 | 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 ())) -> _`
107107...
108108LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
109- | -- -------------------------------------------- required by this bound in `h1`
109+ | -------------------------------------------- required by this bound in `h1`
110110
111111error[E0631]: type mismatch in closure arguments
112112 --> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
@@ -117,7 +117,7 @@ LL | h2(|_: (), _: (), _: (), _: ()| {});
117117 | 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 ())) -> _`
118118...
119119LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
120- | -- --------------------------------------------------------- required by this bound in `h2`
120+ | --------------------------------------------------------- required by this bound in `h2`
121121
122122error: aborting due to 11 previous errors
123123
0 commit comments