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 1653767 commit 8497fe1Copy full SHA for 8497fe1
library/core/src/iter/traits/collect.rs
@@ -153,8 +153,8 @@ pub trait FromIterator<A>: Sized {
153
}
154
155
// 为同时实现 Default 和 Extend 的类型实现 FromIterator
156
-#[unstable(feature = "from_iter_default", issue = "58659")]
157
impl<T, A: Default + Extend<T>> FromIterator<T> for A {
+ #[stable(feature = "rust1", since = "1.0.0")]
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();
0 commit comments