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 854316aCopy full SHA for 854316a
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(issue = "58659")]
158
+ #[rustc_diagnostic_item = "default_from_iter_fn"]
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