2017-09-25 15:36:08 +00:00
|
|
|
error[E0631]: type mismatch in closure arguments
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:2:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | f1(|_: (), _: ()| {});
|
2022-07-28 15:33:10 +00:00
|
|
|
| ^^ -------------- found signature defined here
|
2017-09-25 15:36:08 +00:00
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: expected closure signature `for<'a, 'b> fn(&'a (), &'b ()) -> _`
|
2022-07-28 15:33:10 +00:00
|
|
|
found closure signature `fn((), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `f1`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:25
|
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^ required by this bound in `f1`
|
2022-10-11 15:02:56 +00:00
|
|
|
help: consider borrowing the argument
|
2022-10-08 13:50:35 +00:00
|
|
|
|
|
2022-11-13 21:40:54 +00:00
|
|
|
LL | f1(|_: &(), _: &()| {});
|
2023-01-14 23:53:56 +00:00
|
|
|
| + +
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-10-01 00:48:22 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:3:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | f2(|_: (), _: ()| {});
|
2022-07-28 15:33:10 +00:00
|
|
|
| ^^ -------------- found signature defined here
|
2017-09-25 15:36:08 +00:00
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: expected closure signature `for<'a, 'b> fn(&'a (), &'b ()) -> _`
|
2022-07-28 15:33:10 +00:00
|
|
|
found closure signature `fn((), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `f2`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:17:25
|
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f2`
|
2022-10-11 15:02:56 +00:00
|
|
|
help: consider borrowing the argument
|
2022-10-08 13:50:35 +00:00
|
|
|
|
|
2023-01-14 23:53:56 +00:00
|
|
|
LL | f2(|_: &(), _: &()| {});
|
|
|
|
| + +
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | f3(|_: (), _: ()| {});
|
2022-07-28 15:33:10 +00:00
|
|
|
| ^^ -------------- found signature defined here
|
2017-09-25 15:36:08 +00:00
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: expected closure signature `for<'a> fn(&(), &'a ()) -> _`
|
2022-07-28 15:33:10 +00:00
|
|
|
found closure signature `fn((), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `f3`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:29
|
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ required by this bound in `f3`
|
2022-10-11 15:02:56 +00:00
|
|
|
help: consider borrowing the argument
|
2022-10-08 13:50:35 +00:00
|
|
|
|
|
2022-11-13 21:40:54 +00:00
|
|
|
LL | f3(|_: &(), _: &()| {});
|
2023-01-14 23:53:56 +00:00
|
|
|
| + +
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-10-01 00:48:22 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:5:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | f4(|_: (), _: ()| {});
|
2022-07-28 15:33:10 +00:00
|
|
|
| ^^ -------------- found signature defined here
|
2017-09-25 15:36:08 +00:00
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: expected closure signature `for<'r, 'a> fn(&'a (), &'r ()) -> _`
|
2022-07-28 15:33:10 +00:00
|
|
|
found closure signature `fn((), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `f4`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:19:25
|
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f4`
|
2022-10-11 15:02:56 +00:00
|
|
|
help: consider borrowing the argument
|
2022-10-08 13:50:35 +00:00
|
|
|
|
|
2023-01-14 23:53:56 +00:00
|
|
|
LL | f4(|_: &(), _: &()| {});
|
|
|
|
| + +
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-10-01 00:48:22 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | f5(|_: (), _: ()| {});
|
2022-07-28 15:33:10 +00:00
|
|
|
| ^^ -------------- found signature defined here
|
2017-09-25 15:36:08 +00:00
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-07-28 15:33:10 +00:00
|
|
|
= note: expected closure signature `for<'r> fn(&'r (), &'r ()) -> _`
|
|
|
|
found closure signature `fn((), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `f5`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:25
|
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f5`
|
2022-10-11 15:02:56 +00:00
|
|
|
help: consider borrowing the argument
|
2022-10-08 13:50:35 +00:00
|
|
|
|
|
2023-01-14 23:53:56 +00:00
|
|
|
LL | f5(|_: &(), _: &()| {});
|
|
|
|
| + +
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-10-01 00:48:22 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:7:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | g1(|_: (), _: ()| {});
|
2023-01-14 23:53:56 +00:00
|
|
|
| ^^ -------------- found signature defined here
|
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: expected closure signature `for<'a> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>) -> _`
|
2022-07-28 15:33:10 +00:00
|
|
|
found closure signature `fn((), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `g1`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:23:25
|
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g1`
|
2023-01-14 23:53:56 +00:00
|
|
|
help: consider borrowing the argument
|
|
|
|
|
|
|
|
|
LL | g1(|_: &(), _: ()| {});
|
|
|
|
| +
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-10-01 00:48:22 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | g2(|_: (), _: ()| {});
|
2023-01-14 23:53:56 +00:00
|
|
|
| ^^ -------------- found signature defined here
|
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: expected closure signature `for<'a> fn(&'a (), for<'a> fn(&'a ())) -> _`
|
2022-07-28 15:33:10 +00:00
|
|
|
found closure signature `fn((), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `g2`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:24:25
|
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ required by this bound in `g2`
|
2023-01-14 23:53:56 +00:00
|
|
|
help: consider borrowing the argument
|
|
|
|
|
|
|
|
|
LL | g2(|_: &(), _: ()| {});
|
|
|
|
| +
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-10-01 00:48:22 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:9:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | g3(|_: (), _: ()| {});
|
2023-01-14 23:53:56 +00:00
|
|
|
| ^^ -------------- found signature defined here
|
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: expected closure signature `for<'s> fn(&'s (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>) -> _`
|
2022-07-28 15:33:10 +00:00
|
|
|
found closure signature `fn((), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `g3`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:25:25
|
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g3`
|
2023-01-14 23:53:56 +00:00
|
|
|
help: consider borrowing the argument
|
|
|
|
|
|
|
|
|
LL | g3(|_: &(), _: ()| {});
|
|
|
|
| +
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-10-01 00:48:22 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | g4(|_: (), _: ()| {});
|
2023-01-14 23:53:56 +00:00
|
|
|
| ^^ -------------- found signature defined here
|
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: expected closure signature `for<'a> fn(&'a (), for<'r> fn(&'r ())) -> _`
|
2022-07-28 15:33:10 +00:00
|
|
|
found closure signature `fn((), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `g4`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:26:25
|
|
|
|
|
|
2019-02-20 17:52:23 +00:00
|
|
|
LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g4`
|
2023-01-14 23:53:56 +00:00
|
|
|
help: consider borrowing the argument
|
|
|
|
|
|
|
|
|
LL | g4(|_: &(), _: ()| {});
|
|
|
|
| +
|
2019-02-20 17:52:23 +00:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-10-01 00:48:22 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:11:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | h1(|_: (), _: (), _: (), _: ()| {});
|
2022-07-28 15:33:10 +00:00
|
|
|
| ^^ ---------------------------- found signature defined here
|
2017-09-25 15:36:08 +00:00
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: expected closure signature `for<'a, 'b> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>, &'b (), for<'a, 'b> fn(&'a (), &'b ())) -> _`
|
2022-07-28 15:33:10 +00:00
|
|
|
found closure signature `fn((), (), (), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `h1`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:29:25
|
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h1`
|
2022-10-11 15:02:56 +00:00
|
|
|
help: consider borrowing the argument
|
2022-10-08 13:50:35 +00:00
|
|
|
|
|
2022-11-13 21:40:54 +00:00
|
|
|
LL | h1(|_: &(), _: (), _: &(), _: ()| {});
|
2023-01-14 23:53:56 +00:00
|
|
|
| + +
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
|
|
error[E0631]: type mismatch in closure arguments
|
2019-10-01 00:48:22 +00:00
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
|
2017-09-25 15:36:08 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | h2(|_: (), _: (), _: (), _: ()| {});
|
2022-07-28 15:33:10 +00:00
|
|
|
| ^^ ---------------------------- found signature defined here
|
2017-09-25 15:36:08 +00:00
|
|
|
| |
|
2022-07-28 15:33:10 +00:00
|
|
|
| expected due to this
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: expected closure signature `for<'t0, 'a> fn(&'a (), Box<(dyn for<'a> Fn(&'a ()) + 'static)>, &'t0 (), for<'a, 'b> fn(&'a (), &'b ())) -> _`
|
2022-07-28 15:33:10 +00:00
|
|
|
found closure signature `fn((), (), (), ()) -> _`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `h2`
|
|
|
|
--> $DIR/anonymous-higher-ranked-lifetime.rs:30:25
|
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
|
2021-07-31 16:26:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h2`
|
2022-10-11 15:02:56 +00:00
|
|
|
help: consider borrowing the argument
|
2022-10-08 13:50:35 +00:00
|
|
|
|
|
2023-01-14 23:53:56 +00:00
|
|
|
LL | h2(|_: &(), _: (), _: &(), _: ()| {});
|
|
|
|
| + +
|
2019-02-20 17:52:23 +00:00
|
|
|
|
2019-10-01 00:48:22 +00:00
|
|
|
error: aborting due to 11 previous errors
|
2017-09-25 15:36:08 +00:00
|
|
|
|
2019-12-03 02:52:04 +00:00
|
|
|
For more information about this error, try `rustc --explain E0631`.
|