diff options
| author | Ilija Tovilo <ilija.tovilo@me.com> | 2019-08-09 13:40:54 +0200 |
|---|---|---|
| committer | Ilija Tovilo <ilija.tovilo@me.com> | 2019-08-09 13:40:54 +0200 |
| commit | 77bfd7fd1a939638a19ca30efad767c81bdd3d8b (patch) | |
| tree | 76aec2bf73e19870ae5877af3832ccd7378a1d8a | |
| parent | 3d231acceeb6a1af8108577b65bd60745f7dcf17 (diff) | |
Don't use associated type bounds in docs until it is stable
| -rw-r--r-- | src/libcore/iter/traits/collect.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcore/iter/traits/collect.rs b/src/libcore/iter/traits/collect.rs index 015184cbba2..25439136b85 100644 --- a/src/libcore/iter/traits/collect.rs +++ b/src/libcore/iter/traits/collect.rs @@ -194,11 +194,10 @@ pub trait FromIterator<A>: Sized { /// `Item`: /// /// ```rust -/// #![feature(associated_type_bounds)] -/// /// fn collect_as_strings<T>(collection: T) -> Vec<String> /// where -/// T: IntoIterator<Item: std::fmt::Debug>, +/// T: IntoIterator, +/// T::Item: std::fmt::Debug, /// { /// collection /// .into_iter() |
