@@ -74,7 +74,7 @@ error[E0631]: type mismatch in closure arguments
74
74
LL | g1(|_: (), _: ()| {}); //~ ERROR type mismatch
75
75
| ^^ -------------- found signature of `fn((), ()) -> _`
76
76
| |
77
- | expected signature of `for<'r> fn(&'r (), std::boxed::Box<for<'s> std::ops::Fn(&'s ()) + 'static>) -> _`
77
+ | expected signature of `for<'r> fn(&'r (), std::boxed::Box<(dyn for<'s> std::ops::Fn(&'s ()) + 'static) >) -> _`
78
78
|
79
79
note: required by `g1`
80
80
--> $DIR/anonymous-higher-ranked-lifetime.rs:33:1
@@ -102,7 +102,7 @@ error[E0631]: type mismatch in closure arguments
102
102
LL | g3(|_: (), _: ()| {}); //~ ERROR type mismatch
103
103
| ^^ -------------- found signature of `fn((), ()) -> _`
104
104
| |
105
- | expected signature of `for<'s> fn(&'s (), std::boxed::Box<for<'r> std::ops::Fn(&'r ()) + 'static>) -> _`
105
+ | expected signature of `for<'s> fn(&'s (), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static) >) -> _`
106
106
|
107
107
note: required by `g3`
108
108
--> $DIR/anonymous-higher-ranked-lifetime.rs:35:1
@@ -130,7 +130,7 @@ error[E0631]: type mismatch in closure arguments
130
130
LL | h1(|_: (), _: (), _: (), _: ()| {}); //~ ERROR type mismatch
131
131
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
132
132
| |
133
- | 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 ())) -> _`
133
+ | 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 ())) -> _`
134
134
|
135
135
note: required by `h1`
136
136
--> $DIR/anonymous-higher-ranked-lifetime.rs:39:1
@@ -144,7 +144,7 @@ error[E0631]: type mismatch in closure arguments
144
144
LL | h2(|_: (), _: (), _: (), _: ()| {}); //~ ERROR type mismatch
145
145
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
146
146
| |
147
- | 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 ())) -> _`
147
+ | 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 ())) -> _`
148
148
|
149
149
note: required by `h2`
150
150
--> $DIR/anonymous-higher-ranked-lifetime.rs:40:1
0 commit comments