1 error: type parameter `T` is part of concrete type but not used in parameter list for the `impl Trait` type alias
2 --> $DIR/issue-58887.rs:16:41
4 LL | fn unwrap_items(self) -> Self::Iter {
5 | _________________________________________^
8 LL | | self.map(|x| x.unwrap())
12 error: type parameter `E` is part of concrete type but not used in parameter list for the `impl Trait` type alias
13 --> $DIR/issue-58887.rs:16:41
15 LL | fn unwrap_items(self) -> Self::Iter {
16 | _________________________________________^
19 LL | | self.map(|x| x.unwrap())
23 error: could not find defining uses
24 --> $DIR/issue-58887.rs:13:5
26 LL | type Iter = impl Iterator<Item = T>;
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29 error: aborting due to 3 previous errors