]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lazy-type-alias-impl-trait/recursion4.stderr
Rollup merge of #99954 - dingxiangfei2009:break-out-let-else-higher-up, r=oli-obk
[rust.git] / src / test / ui / lazy-type-alias-impl-trait / recursion4.stderr
1 error[E0277]: a value of type `Foo` cannot be built from an iterator over elements of type `_`
2   --> $DIR/recursion4.rs:10:9
3    |
4 LL |     x = std::iter::empty().collect();
5    |         ^^^^^^^^^^^^^^^^^^ ------- required by a bound introduced by this call
6    |         |
7    |         value of type `Foo` cannot be built from `std::iter::Iterator<Item=_>`
8    |
9    = help: the trait `FromIterator<_>` is not implemented for `Foo`
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[E0277]: a value of type `impl Debug` cannot be built from an iterator over elements of type `_`
17   --> $DIR/recursion4.rs:19:9
18    |
19 LL |     x = std::iter::empty().collect();
20    |         ^^^^^^^^^^^^^^^^^^ ------- required by a bound introduced by this call
21    |         |
22    |         value of type `impl Debug` cannot be built from `std::iter::Iterator<Item=_>`
23    |
24    = help: the trait `FromIterator<_>` is not implemented for `impl Debug`
25 note: required by a bound in `collect`
26   --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
27    |
28 LL |     fn collect<B: FromIterator<Self::Item>>(self) -> B
29    |                   ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `collect`
30
31 error: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0277`.