]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-57961.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / type-alias-impl-trait / issue-57961.stderr
1 error[E0271]: expected `IntoIter<u32>` to be an iterator that yields `X`, but it yields `u32`
2   --> $DIR/issue-57961.rs:10:16
3    |
4 LL | type X = impl Sized;
5    |          ---------- the expected opaque type
6 ...
7 LL |     type Bar = std::vec::IntoIter<u32>;
8    |                ^^^^^^^^^^^^^^^^^^^^^^^ expected opaque type, found `u32`
9    |
10    = note: expected opaque type `X`
11                      found type `u32`
12 note: required by a bound in `Foo::Bar`
13   --> $DIR/issue-57961.rs:6:24
14    |
15 LL |     type Bar: Iterator<Item = X>;
16    |                        ^^^^^^^^ required by this bound in `Foo::Bar`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0271`.