mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
Don't use associated type bounds in docs until it is stable
This commit is contained in:
parent
3d231accee
commit
77bfd7fd1a
@ -194,11 +194,10 @@ pub trait FromIterator<A>: Sized {
|
|||||||
/// `Item`:
|
/// `Item`:
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// #![feature(associated_type_bounds)]
|
|
||||||
///
|
|
||||||
/// fn collect_as_strings<T>(collection: T) -> Vec<String>
|
/// fn collect_as_strings<T>(collection: T) -> Vec<String>
|
||||||
/// where
|
/// where
|
||||||
/// T: IntoIterator<Item: std::fmt::Debug>,
|
/// T: IntoIterator,
|
||||||
|
/// T::Item: std::fmt::Debug,
|
||||||
/// {
|
/// {
|
||||||
/// collection
|
/// collection
|
||||||
/// .into_iter()
|
/// .into_iter()
|
||||||
|
Loading…
Reference in New Issue
Block a user