stream: work around the rustc bug in StreamExt::collect (#7754)

This commit is contained in:
Tethys Svensson
2025-12-05 10:24:29 +08:00
committed by GitHub
parent 5471a5835e
commit c8116ecd7b
2 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -916,7 +916,7 @@ pub trait StreamExt: Stream {
/// assert_eq!(Err("no"), values);
/// # }
/// ```
fn collect<T>(self) -> Collect<Self, T>
fn collect<T>(self) -> Collect<Self, T, T::InternalCollection>
where
T: FromStream<Self::Item>,
Self: Sized,