Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion lender/src/higher_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,16 @@ macro_rules! __covar__ {
)?
$hr
>(
::core::marker::PhantomData<fn() -> ($Ret, &$hr ())>
::core::marker::PhantomData<
(
fn() -> ($Ret, &$hr ()),
$(
$($(
&$lt (),
)+)?
)?
)
>
);

// This function only compiles if __CovarCheck (and thus $Ret)
Expand Down
4 changes: 2 additions & 2 deletions lender/tests/fail/try_collect.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ error: implementation of `lender::FromLender` is not general enough
40 | let wrapper: ChangeOutputType<Result<(), _>, _> = lender.try_collect::<Wrapper<TryShunt<'_, _>>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `lender::FromLender` is not general enough
|
= note: `Wrapper<lender::TryShunt<'2, &mut lender::FromFn<(), {closure@$DIR/src/higher_order.rs:381:15: 381:43}>>>` must implement `lender::FromLender<lender::TryShunt<'1, &mut lender::FromFn<(), {closure@$DIR/src/higher_order.rs:381:15: 381:43}>>>`, for any lifetime `'1`...
= note: ...but it actually implements `lender::FromLender<lender::TryShunt<'2, &mut lender::FromFn<(), {closure@$DIR/src/higher_order.rs:381:15: 381:43}>>>`, for some specific lifetime `'2`
= note: `Wrapper<lender::TryShunt<'2, &mut lender::FromFn<(), {closure@$DIR/src/higher_order.rs:390:15: 390:43}>>>` must implement `lender::FromLender<lender::TryShunt<'1, &mut lender::FromFn<(), {closure@$DIR/src/higher_order.rs:390:15: 390:43}>>>`, for any lifetime `'1`...
= note: ...but it actually implements `lender::FromLender<lender::TryShunt<'2, &mut lender::FromFn<(), {closure@$DIR/src/higher_order.rs:390:15: 390:43}>>>`, for some specific lifetime `'2`