4 #![deny(rust_2021_prelude_collisions)]
9 fn try_into(self) -> S {
17 fn from_iter(_: i32) -> Self;
21 fn from_iter(_: i32) -> Self {
29 fn from_iter(_: i32) -> Self {
37 fn from_iter(_: i32) -> Self {
42 impl std::iter::FromIterator<u32> for Z<u32> {
43 fn from_iter<T: IntoIterator<Item = u32>>(_: T) -> Self {
49 // See https://github.com/rust-lang/rust/issues/86633
51 let s2 = s.try_into();
53 // Check that we do not issue suggestions for types that do not implement `FromIter`.
55 // See https://github.com/rust-lang/rust/issues/86902
58 Y::<i32>::from_iter(1);
59 Z::<i32>::from_iter(1);