1 error: higher-ranked subtype error
2 --> $DIR/issue-30786.rs:108:15
4 LL | let map = source.map(|x: &_| x);
5 | ^^^^^^^^^^^^^^^^^^^^^
7 error: higher-ranked subtype error
8 --> $DIR/issue-30786.rs:114:18
10 LL | let filter = map.filter(|x: &_| true);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^
13 error: higher-ranked subtype error
14 --> $DIR/issue-30786.rs:114:18
16 LL | let filter = map.filter(|x: &_| true);
17 | ^^^^^^^^^^^^^^^^^^^^^^^^
19 error: higher-ranked subtype error
20 --> $DIR/issue-30786.rs:114:18
22 LL | let filter = map.filter(|x: &_| true);
23 | ^^^^^^^^^^^^^^^^^^^^^^^^
25 error: higher-ranked subtype error
26 --> $DIR/issue-30786.rs:114:18
28 LL | let filter = map.filter(|x: &_| true);
29 | ^^^^^^^^^^^^^^^^^^^^^^^^
31 error: higher-ranked subtype error
32 --> $DIR/issue-30786.rs:119:17
34 LL | let count = filter.count(); // Assert that we still have a valid stream.
37 error: higher-ranked subtype error
38 --> $DIR/issue-30786.rs:119:17
40 LL | let count = filter.count(); // Assert that we still have a valid stream.
43 error: higher-ranked subtype error
44 --> $DIR/issue-30786.rs:119:17
46 LL | let count = filter.count(); // Assert that we still have a valid stream.
49 error: higher-ranked subtype error
50 --> $DIR/issue-30786.rs:119:17
52 LL | let count = filter.count(); // Assert that we still have a valid stream.
55 error: aborting due to 9 previous errors