fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error: higher-ranked subtype error 2 --> $DIR/issue-30786.rs:108:15 3 | 4LL | let map = source.map(|x: &_| x); 5 | ^^^^^^^^^^^^^^^^^^^^^ 6 7error: higher-ranked subtype error 8 --> $DIR/issue-30786.rs:114:18 9 | 10LL | let filter = map.filter(|x: &_| true); 11 | ^^^^^^^^^^^^^^^^^^^^^^^^ 12 13error: higher-ranked subtype error 14 --> $DIR/issue-30786.rs:114:18 15 | 16LL | let filter = map.filter(|x: &_| true); 17 | ^^^^^^^^^^^^^^^^^^^^^^^^ 18 19error: higher-ranked subtype error 20 --> $DIR/issue-30786.rs:114:18 21 | 22LL | let filter = map.filter(|x: &_| true); 23 | ^^^^^^^^^^^^^^^^^^^^^^^^ 24 25error: higher-ranked subtype error 26 --> $DIR/issue-30786.rs:114:18 27 | 28LL | let filter = map.filter(|x: &_| true); 29 | ^^^^^^^^^^^^^^^^^^^^^^^^ 30 31error: higher-ranked subtype error 32 --> $DIR/issue-30786.rs:119:17 33 | 34LL | let count = filter.count(); // Assert that we still have a valid stream. 35 | ^^^^^^^^^^^^^^ 36 37error: higher-ranked subtype error 38 --> $DIR/issue-30786.rs:119:17 39 | 40LL | let count = filter.count(); // Assert that we still have a valid stream. 41 | ^^^^^^^^^^^^^^ 42 43error: higher-ranked subtype error 44 --> $DIR/issue-30786.rs:119:17 45 | 46LL | let count = filter.count(); // Assert that we still have a valid stream. 47 | ^^^^^^^^^^^^^^ 48 49error: higher-ranked subtype error 50 --> $DIR/issue-30786.rs:119:17 51 | 52LL | let count = filter.count(); // Assert that we still have a valid stream. 53 | ^^^^^^^^^^^^^^ 54 55error: aborting due to 9 previous errors 56