]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lazy-type-alias-impl-trait/branches.stderr
Rollup merge of #94467 - ibraheemdev:master, r=pnkfelix
[rust.git] / src / test / ui / lazy-type-alias-impl-trait / branches.stderr
1 error[E0277]: a value of type `Bar` cannot be built from an iterator over elements of type `_`
2   --> $DIR/branches.rs:19:9
3    |
4 LL |         std::iter::empty().collect()
5    |         ^^^^^^^^^^^^^^^^^^ ------- required by a bound introduced by this call
6    |         |
7    |         value of type `Bar` cannot be built from `std::iter::Iterator<Item=_>`
8    |
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
12    |
13 LL |     fn collect<B: FromIterator<Self::Item>>(self) -> B
14    |                   ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `collect`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.