Skip to content

Commit 77bfd7f

Browse files
committed
Don't use associated type bounds in docs until it is stable
1 parent 3d231ac commit 77bfd7f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libcore/iter/traits/collect.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,10 @@ pub trait FromIterator<A>: Sized {
194194
/// `Item`:
195195
///
196196
/// ```rust
197-
/// #![feature(associated_type_bounds)]
198-
///
199197
/// fn collect_as_strings<T>(collection: T) -> Vec<String>
200198
/// where
201-
/// T: IntoIterator<Item: std::fmt::Debug>,
199+
/// T: IntoIterator,
200+
/// T::Item: std::fmt::Debug,
202201
/// {
203202
/// collection
204203
/// .into_iter()

0 commit comments

Comments
 (0)