mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +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`:
|
||||
///
|
||||
/// ```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()
|
||||
|
Loading…
Reference in New Issue
Block a user