1- error[E0599]: the method `filterx` exists for struct `Map<Repeat, [closure@issue-30786.rs:117 :27]>`, but its trait bounds were not satisfied
2- --> $DIR/issue-30786.rs:118 :22
1+ error[E0599]: the method `filterx` exists for struct `Map<Repeat, [closure@issue-30786.rs:119 :27]>`, but its trait bounds were not satisfied
2+ --> $DIR/issue-30786.rs:120 :22
33 |
44LL | pub struct Map<S, F> {
55 | --------------------
@@ -8,19 +8,19 @@ LL | pub struct Map<S, F> {
88 | doesn't satisfy `_: StreamExt`
99...
1010LL | let filter = map.filterx(|x: &_| true);
11- | ^^^^^^^ method cannot be called on `Map<Repeat, [closure@issue-30786.rs:117 :27]>` due to unsatisfied trait bounds
11+ | ^^^^^^^ method cannot be called on `Map<Repeat, [closure@issue-30786.rs:119 :27]>` due to unsatisfied trait bounds
1212 |
1313note: the following trait bounds were not satisfied:
14- `&'a mut &Map<Repeat, [closure@$DIR/issue-30786.rs:117 :27: 117 :34]>: Stream`
15- `&'a mut &mut Map<Repeat, [closure@$DIR/issue-30786.rs:117 :27: 117 :34]>: Stream`
16- `&'a mut Map<Repeat, [closure@$DIR/issue-30786.rs:117 :27: 117 :34]>: Stream`
17- --> $DIR/issue-30786.rs:96 :50
14+ `&'a mut &Map<Repeat, [closure@$DIR/issue-30786.rs:119 :27: 119 :34]>: Stream`
15+ `&'a mut &mut Map<Repeat, [closure@$DIR/issue-30786.rs:119 :27: 119 :34]>: Stream`
16+ `&'a mut Map<Repeat, [closure@$DIR/issue-30786.rs:119 :27: 119 :34]>: Stream`
17+ --> $DIR/issue-30786.rs:98 :50
1818 |
1919LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
2020 | --------- - ^^^^^^ unsatisfied trait bound introduced here
2121
22- error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, fn(&u64) -> &u64 {identity::<u64>}>, [closure@issue-30786.rs:129 :30]>`, but its trait bounds were not satisfied
23- --> $DIR/issue-30786.rs:130 :24
22+ error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, fn(&u64) -> &u64 {identity::<u64>}>, [closure@issue-30786.rs:131 :30]>`, but its trait bounds were not satisfied
23+ --> $DIR/issue-30786.rs:132 :24
2424 |
2525LL | pub struct Filter<S, F> {
2626 | -----------------------
@@ -31,11 +31,12 @@ LL | pub struct Filter<S, F> {
3131LL | let count = filter.countx();
3232 | ^^^^^^ method cannot be called due to unsatisfied trait bounds
3333 |
34+ = note: the full type name has been written to '$TEST_BUILD_DIR/higher-rank-trait-bounds/issue-30786/issue-30786.long-type-hash.txt'
3435note: the following trait bounds were not satisfied:
35- `&'a mut &Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:129 :30: 129 :37]>: Stream`
36- `&'a mut &mut Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:129 :30: 129 :37]>: Stream`
37- `&'a mut Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:129 :30: 129 :37]>: Stream`
38- --> $DIR/issue-30786.rs:96 :50
36+ `&'a mut &Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:131 :30: 131 :37]>: Stream`
37+ `&'a mut &mut Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:131 :30: 131 :37]>: Stream`
38+ `&'a mut Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:131 :30: 131 :37]>: Stream`
39+ --> $DIR/issue-30786.rs:98 :50
3940 |
4041LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
4142 | --------- - ^^^^^^ unsatisfied trait bound introduced here
0 commit comments