1 error[E0271]: expected `IntoIter<u32>` to be an iterator that yields `X`, but it yields `u32`
2 --> $DIR/issue-57961.rs:10:16
4 LL | type X = impl Sized;
5 | ---------- the expected opaque type
7 LL | type Bar = std::vec::IntoIter<u32>;
8 | ^^^^^^^^^^^^^^^^^^^^^^^ expected opaque type, found `u32`
10 = note: expected opaque type `X`
12 note: required by a bound in `Foo::Bar`
13 --> $DIR/issue-57961.rs:6:24
15 LL | type Bar: Iterator<Item = X>;
16 | ^^^^^^^^ required by this bound in `Foo::Bar`
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0271`.