diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 9d51a4779cf..218cd2c25a2 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -1233,7 +1233,7 @@ impl [T] { /// ``` #[unstable(feature = "slice_group_by", issue = "none")] #[inline] - pub fn group_by(&self, pred: F) -> GroupBy + pub fn group_by(&self, pred: F) -> GroupBy<'_, T, F> where F: FnMut(&T, &T) -> bool { GroupBy::new(self, pred) @@ -1262,7 +1262,7 @@ impl [T] { /// ``` #[unstable(feature = "slice_group_by", issue = "none")] #[inline] - pub fn group_by_mut(&mut self, pred: F) -> GroupByMut + pub fn group_by_mut(&mut self, pred: F) -> GroupByMut<'_, T, F> where F: FnMut(&T, &T) -> bool { GroupByMut::new(self, pred)