We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d83a83f commit c0faef8Copy full SHA for c0faef8
library/core/src/iter/traits/collect.rs
@@ -154,6 +154,8 @@ pub trait FromIterator<A>: Sized {
154
155
// implement `FromIterator` for type with Default and Extend
156
impl<T, A: Default + Extend<T>> FromIterator<T> for A {
157
+ #[unstable(feature = "from_iter_default", issue = "58659")]
158
+ #[rustc_diagnostic_item = "from_iter_default"]
159
default fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self {
160
let mut collection = A::default();
161
collection.extend(iter);
0 commit comments