1 error[E0271]: type mismatch resolving `<Adapter<I> as Iterator>::Item == Option<T>`
2 --> $DIR/associated-types-issue-20346.rs:34:5
4 LL | fn test_adapter<T, I: Iterator<Item=Option<T>>>(it: I) {
5 | - this type parameter
7 LL | is_iterator_of::<Option<T>, _>(&adapter);
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch resolving `<Adapter<I> as Iterator>::Item == Option<T>`
10 note: expected this to be `Option<T>`
11 --> $DIR/associated-types-issue-20346.rs:23:17
15 = note: expected enum `Option<T>`
16 found type parameter `T`
17 note: required by a bound in `is_iterator_of`
18 --> $DIR/associated-types-issue-20346.rs:15:34
20 LL | fn is_iterator_of<A, I: Iterator<Item=A>>(_: &I) {}
21 | ^^^^^^ required by this bound in `is_iterator_of`
23 error: aborting due to previous error
25 For more information about this error, try `rustc --explain E0271`.