Don't use associated type bounds in docs until it is stable

This commit is contained in:
Ilija Tovilo 2019-08-09 13:40:54 +02:00
parent 3d231accee
commit 77bfd7fd1a
No known key found for this signature in database
GPG key ID: 3F123D0ADD448198

View file

@ -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()