]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hrtb/issue-30786.stderr
Rollup merge of #98794 - compiler-errors:conflicting-param-env, r=michaelwoerister
[rust.git] / src / test / ui / hrtb / issue-30786.stderr
1 error[E0599]: the method `filterx` exists for struct `Map<Repeat, [closure@$DIR/issue-30786.rs:117:27: 117:34]>`, but its trait bounds were not satisfied
2   --> $DIR/issue-30786.rs:118:22
3    |
4 LL | pub struct Map<S, F> {
5    | --------------------
6    | |          |
7    | |          method `filterx` not found for this struct
8    | doesn't satisfy `_: StreamExt`
9 ...
10 LL |     let filter = map.filterx(|x: &_| true);
11    |                      ^^^^^^^ method cannot be called on `Map<Repeat, [closure@$DIR/issue-30786.rs:117:27: 117:34]>` due to unsatisfied trait bounds
12    |
13 note: 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
18    |
19 LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
20    |         ---------     -                          ^^^^^^ unsatisfied trait bound introduced here
21 help: one of the expressions' fields has a method of the same name
22    |
23 LL |     let filter = map.stream.filterx(|x: &_| true);
24    |                      +++++++
25
26 error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:129:30: 129:37]>`, but its trait bounds were not satisfied
27   --> $DIR/issue-30786.rs:130:24
28    |
29 LL | pub struct Filter<S, F> {
30    | -----------------------
31    | |          |
32    | |          method `countx` not found for this struct
33    | doesn't satisfy `_: StreamExt`
34 ...
35 LL |     let count = filter.countx();
36    |                        ^^^^^^ method cannot be called on `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:129:30: 129:37]>` due to unsatisfied trait bounds
37    |
38 note: the following trait bounds were not satisfied:
39       `&'a mut &Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:129:30: 129:37]>: Stream`
40       `&'a mut &mut Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:129:30: 129:37]>: Stream`
41       `&'a mut Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:129:30: 129:37]>: Stream`
42   --> $DIR/issue-30786.rs:96:50
43    |
44 LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
45    |         ---------     -                          ^^^^^^ unsatisfied trait bound introduced here
46 help: one of the expressions' fields has a method of the same name
47    |
48 LL |     let count = filter.stream.countx();
49    |                        +++++++
50
51 error: aborting due to 2 previous errors
52
53 For more information about this error, try `rustc --explain E0599`.