]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/iter/traits/collect.rs
Check FromIterator trait impl in prelude collision check.
[rust.git] / library / core / src / iter / traits / collect.rs
index 348e1f7e3f23d2160bd60412956d8ca4a19623fe..7f87ead6feed6c132faec40398c48dc1912591e6 100644 (file)
@@ -89,6 +89,7 @@
                over elements of type `{A}`",
     label = "value of type `{Self}` cannot be built from `std::iter::Iterator<Item={A}>`"
 )]
+#[rustc_diagnostic_item = "FromIterator"]
 pub trait FromIterator<A>: Sized {
     /// Creates a value from an iterator.
     ///