1 error[E0277]: a value of type `Foo` cannot be built from an iterator over elements of type `_`
2 --> $DIR/recursion2.rs:10:24
4 LL | std::iter::empty().collect()
5 | ^^^^^^^ value of type `Foo` cannot be built from `std::iter::Iterator<Item=_>`
7 = help: the trait `FromIterator<_>` is not implemented for `Foo`
8 note: required by a bound in `collect`
9 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
11 LL | fn collect<B: FromIterator<Self::Item>>(self) -> B
12 | ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `collect`
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0277`.