diff --git a/src/adaptors/mod.rs b/src/adaptors/mod.rs index 77192f26e..6de2ccb09 100644 --- a/src/adaptors/mod.rs +++ b/src/adaptors/mod.rs @@ -629,7 +629,7 @@ pub trait HasCombination: Sized { /// Create a new `TupleCombinations` from a clonable iterator. pub fn tuple_combinations(iter: I) -> TupleCombinations where - I: Iterator + Clone, + I: Iterator, I::Item: Clone, T: HasCombination, { diff --git a/src/lib.rs b/src/lib.rs index 069102984..cba3ad570 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1667,7 +1667,7 @@ pub trait Itertools: Iterator { /// ``` fn tuple_combinations(self) -> TupleCombinations where - Self: Sized + Clone, + Self: Sized, Self::Item: Clone, T: adaptors::HasCombination, {