Skip to content

Commit ec85c32

Browse files
committed
Check FromIterator trait impl in prelude collision check.
1 parent a857516 commit ec85c32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/iter/traits/collect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
over elements of type `{A}`",
9090
label = "value of type `{Self}` cannot be built from `std::iter::Iterator<Item={A}>`"
9191
)]
92+
#[rustc_diagnostic_item = "FromIterator"]
9293
pub trait FromIterator<A>: Sized {
9394
/// Creates a value from an iterator.
9495
///

0 commit comments

Comments
 (0)