1 error[E0631]: type mismatch in closure arguments
2 --> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
4 12 | f1(|_: (), _: ()| {});
5 | ^^ ----------------- found signature of `fn((), ()) -> _`
7 | expected signature of `for<'r, 's> fn(&'r (), &'s ()) -> _`
9 = note: required by `f1`
11 error[E0631]: type mismatch in closure arguments
12 --> $DIR/anonymous-higher-ranked-lifetime.rs:13:5
14 13 | f2(|_: (), _: ()| {});
15 | ^^ ----------------- found signature of `fn((), ()) -> _`
17 | expected signature of `for<'a, 'r> fn(&'a (), &'r ()) -> _`
19 = note: required by `f2`
21 error[E0631]: type mismatch in closure arguments
22 --> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
24 14 | f3(|_: (), _: ()| {});
25 | ^^ ----------------- found signature of `fn((), ()) -> _`
27 | expected signature of `for<'r> fn(&(), &'r ()) -> _`
29 = note: required by `f3`
31 error[E0631]: type mismatch in closure arguments
32 --> $DIR/anonymous-higher-ranked-lifetime.rs:15:5
34 15 | f4(|_: (), _: ()| {});
35 | ^^ ----------------- found signature of `fn((), ()) -> _`
37 | expected signature of `for<'s, 'r> fn(&'s (), &'r ()) -> _`
39 = note: required by `f4`
41 error[E0631]: type mismatch in closure arguments
42 --> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
44 16 | f5(|_: (), _: ()| {});
45 | ^^ ----------------- found signature of `fn((), ()) -> _`
47 | expected signature of `for<'r> fn(&'r (), &'r ()) -> _`
49 = note: required by `f5`
51 error[E0631]: type mismatch in closure arguments
52 --> $DIR/anonymous-higher-ranked-lifetime.rs:17:5
54 17 | g1(|_: (), _: ()| {});
55 | ^^ ----------------- found signature of `fn((), ()) -> _`
57 | expected signature of `for<'r> fn(&'r (), std::boxed::Box<for<'s> std::ops::Fn(&'s ()) + 'static>) -> _`
59 = note: required by `g1`
61 error[E0631]: type mismatch in closure arguments
62 --> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
64 18 | g2(|_: (), _: ()| {});
65 | ^^ ----------------- found signature of `fn((), ()) -> _`
67 | expected signature of `for<'r> fn(&'r (), for<'s> fn(&'s ())) -> _`
69 = note: required by `g2`
71 error[E0631]: type mismatch in closure arguments
72 --> $DIR/anonymous-higher-ranked-lifetime.rs:19:5
74 19 | g3(|_: (), _: ()| {});
75 | ^^ ----------------- found signature of `fn((), ()) -> _`
77 | expected signature of `for<'s> fn(&'s (), std::boxed::Box<for<'r> std::ops::Fn(&'r ()) + 'static>) -> _`
79 = note: required by `g3`
81 error[E0631]: type mismatch in closure arguments
82 --> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
84 20 | g4(|_: (), _: ()| {});
85 | ^^ ----------------- found signature of `fn((), ()) -> _`
87 | expected signature of `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
89 = note: required by `g4`
91 error[E0631]: type mismatch in closure arguments
92 --> $DIR/anonymous-higher-ranked-lifetime.rs:21:5
94 21 | h1(|_: (), _: (), _: (), _: ()| {});
95 | ^^ ------------------------------- found signature of `fn((), (), (), ()) -> _`
97 | expected signature of `for<'r, 's> fn(&'r (), std::boxed::Box<for<'t0> std::ops::Fn(&'t0 ()) + 'static>, &'s (), for<'t0, 't1> fn(&'t0 (), &'t1 ())) -> _`
99 = note: required by `h1`
101 error[E0631]: type mismatch in closure arguments
102 --> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
104 22 | h2(|_: (), _: (), _: (), _: ()| {});
105 | ^^ ------------------------------- found signature of `fn((), (), (), ()) -> _`
107 | expected signature of `for<'r, 't0> fn(&'r (), std::boxed::Box<for<'s> std::ops::Fn(&'s ()) + 'static>, &'t0 (), for<'s, 't1> fn(&'s (), &'t1 ())) -> _`
109 = note: required by `h2`
111 error: aborting due to 11 previous errors