diff --git a/src/func/test_suite.rs b/src/func/test_suite.rs index cfaa8ee..d664f69 100644 --- a/src/func/test_suite.rs +++ b/src/func/test_suite.rs @@ -1,6 +1,6 @@ use super::{tests::*, *}; -pub trait FunctorTestSuite: WeakFunctor + Eqr + 'static { +pub trait FunctorTestSuite: WeakFunctor + Eqr { fn sample<'a, A: 'a, F: FnMut(&'a dyn Fn(A) -> Self::F<'a, A>)>(f: F) where Self::F<'a, A>: 'a; diff --git a/src/func/tests.rs b/src/func/tests.rs index 4c199e6..dd0e1ea 100644 --- a/src/func/tests.rs +++ b/src/func/tests.rs @@ -243,8 +243,8 @@ pub fn discard_can_be_expressed_via_seq_or_la2< T: Applicative + Eqr, A: 'a, B: 'a + Debug + PartialEq, - FA0: Fn() -> T::F<'a, A>, - FB0: Fn() -> T::F<'a, B>, + FA0: 'a + Fn() -> T::F<'a, A>, + FB0: 'a + Fn() -> T::F<'a, B>, >( fa0: FA0, fb0: FB0, @@ -301,7 +301,7 @@ pub fn bind_is_associative< C: 'a + Debug + PartialEq, F: 'a + Clone + Fn(B) -> T::F<'a, C>, G: 'a + Clone + Fn(A) -> T::F<'a, B>, - FA0: Fn() -> T::F<'a, A>, + FA0: 'a + Fn() -> T::F<'a, A>, >( f: F, g: G,