Skip to content

Commit

Permalink
Don't use associated type bounds in docs until it is stable
Browse files Browse the repository at this point in the history
  • Loading branch information
iluuu1994 committed Aug 9, 2019
1 parent 3d231ac commit 77bfd7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libcore/iter/traits/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 77bfd7f

Please sign in to comment.