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