2017-09-25 10:36:08 -05:00
|
|
|
error[E0631]: type mismatch in closure arguments
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:2:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f1(|_: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
|
|
|
| expected signature of `for<'r, 's> fn(&'r (), &'s ()) -> _`
|
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `f1`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:27:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
|
2018-01-15 16:26:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:2:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f1(|_: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&(), &()) -> _`
|
|
|
|
|
|
|
|
|
note: required by `f1`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:27:1
|
|
|
|
|
|
|
|
|
LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f2(|_: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
|
|
|
| expected signature of `for<'a, 'r> fn(&'a (), &'r ()) -> _`
|
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `f2`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:28:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
|
2018-01-15 16:26:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f2(|_: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&'a (), &()) -> _`
|
|
|
|
|
|
|
|
|
note: required by `f2`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:28:1
|
|
|
|
|
|
|
|
|
LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f3(|_: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
|
|
|
| expected signature of `for<'r> fn(&(), &'r ()) -> _`
|
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `f3`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:29:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
|
2018-01-15 16:26:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f3(|_: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&(), &()) -> _`
|
|
|
|
|
|
|
|
|
note: required by `f3`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:29:1
|
|
|
|
|
|
|
|
|
LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f4(|_: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
|
|
|
| expected signature of `for<'s, 'r> fn(&'s (), &'r ()) -> _`
|
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `f4`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:30:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
|
2018-01-15 16:26:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f4(|_: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&(), &'r ()) -> _`
|
|
|
|
|
|
|
|
|
note: required by `f4`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:30:1
|
|
|
|
|
|
|
|
|
LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f5(|_: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
|
|
|
| expected signature of `for<'r> fn(&'r (), &'r ()) -> _`
|
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `f5`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:31:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
|
2018-01-15 16:26:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f5(|_: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&'r (), &'r ()) -> _`
|
|
|
|
|
|
|
|
|
note: required by `f5`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:31:1
|
|
|
|
|
|
|
|
|
LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g1(|_: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
2018-05-26 22:51:50 -05:00
|
|
|
| expected signature of `for<'r> fn(&'r (), std::boxed::Box<(dyn for<'s> std::ops::Fn(&'s ()) + 'static)>) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `g1`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:34:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g1(|_: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _`
|
|
|
|
|
|
|
|
|
note: required by `g1`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:34:1
|
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-02-20 11:52:23 -06:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g2(|_: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
|
|
|
| expected signature of `for<'r> fn(&'r (), for<'s> fn(&'s ())) -> _`
|
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `g2`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:35:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
|
2018-01-15 16:26:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g2(|_: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&(), for<'r> fn(&'r ())) -> _`
|
|
|
|
|
|
|
|
|
note: required by `g2`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:35:1
|
|
|
|
|
|
|
|
|
LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g3(|_: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
2018-05-26 22:51:50 -05:00
|
|
|
| expected signature of `for<'s> fn(&'s (), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `g3`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:36:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g3(|_: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&'s (), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _`
|
|
|
|
|
|
|
|
|
note: required by `g3`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:36:1
|
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-02-20 11:52:23 -06:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g4(|_: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
|
|
|
| expected signature of `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
|
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `g4`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:37:1
|
|
|
|
|
|
|
|
|
LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g4(|_: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ -------------- found signature of `fn((), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&(), for<'r> fn(&'r ())) -> _`
|
|
|
|
|
|
|
|
|
note: required by `g4`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:37:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
|
2018-01-15 16:26:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | h1(|_: (), _: (), _: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
2018-05-26 22:51:50 -05:00
|
|
|
| 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 ())) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `h1`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:40:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | h1(|_: (), _: (), _: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>, &(), for<'r, 's> fn(&'r (), &'s ())) -> _`
|
|
|
|
|
|
|
|
|
note: required by `h1`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:40:1
|
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-02-20 11:52:23 -06:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | h2(|_: (), _: (), _: (), _: ()| {});
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
| |
|
2018-05-26 22:51:50 -05:00
|
|
|
| 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 ())) -> _`
|
2017-09-25 10:36:08 -05:00
|
|
|
|
|
2018-01-15 16:26:36 -06:00
|
|
|
note: required by `h2`
|
2019-02-20 11:52:23 -06:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:41:1
|
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-02-20 11:52:23 -06:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | h2(|_: (), _: (), _: (), _: ()| {});
|
2019-02-20 11:52:23 -06:00
|
|
|
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
|
|
|
|
| |
|
|
|
|
| expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>, &'t0 (), for<'r, 's> fn(&'r (), &'s ())) -> _`
|
|
|
|
|
|
|
|
|
note: required by `h2`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:41:1
|
2018-01-15 16:26:36 -06:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-09-25 10:36:08 -05:00
|
|
|
|
2019-02-20 11:52:23 -06:00
|
|
|
error: aborting due to 22 previous errors
|
2017-09-25 10:36:08 -05:00
|
|
|
|