]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lazy-type-alias-impl-trait/branches.stderr
Rollup merge of #105694 - ouz-a:issue_105689, r=estebank
[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:28
3    |
4 LL |         std::iter::empty().collect()
5    |                            ^^^^^^^ value of type `Bar` cannot be built from `std::iter::Iterator<Item=_>`
6    |
7    = help: the trait `FromIterator<_>` is not implemented for `Bar`
8 note: required by a bound in `collect`
9   --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0277`.