]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hrtb/issue-30786.migrate.stderr
Remove references to git.io
[rust.git] / src / test / ui / hrtb / issue-30786.migrate.stderr
1 error[E0599]: the method `filterx` exists for struct `Map<Repeat, [closure@$DIR/issue-30786.rs:126:27: 126:36]>`, but its trait bounds were not satisfied
2   --> $DIR/issue-30786.rs:127:22
3    |
4 LL | pub struct Map<S, F> {
5    | --------------------
6    | |
7    | method `filterx` not found for this
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:126:27: 126:36]>` 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:126:27: 126:36]>: Stream`
15       `&'a mut &mut Map<Repeat, [closure@$DIR/issue-30786.rs:126:27: 126:36]>: Stream`
16       `&'a mut Map<Repeat, [closure@$DIR/issue-30786.rs:126:27: 126:36]>: Stream`
17   --> $DIR/issue-30786.rs:105:50
18    |
19 LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
20    |         ---------     -                          ^^^^^^ unsatisfied trait bound introduced here
21
22 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:139:30: 139:42]>`, but its trait bounds were not satisfied
23   --> $DIR/issue-30786.rs:140:24
24    |
25 LL | pub struct Filter<S, F> {
26    | -----------------------
27    | |
28    | method `countx` not found for this
29    | doesn't satisfy `_: StreamExt`
30 ...
31 LL |     let count = filter.countx();
32    |                        ^^^^^^ method cannot be called on `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>` due to unsatisfied trait bounds
33    |
34 note: the following trait bounds were not satisfied:
35       `&'a mut &Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>: Stream`
36       `&'a mut &mut Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>: Stream`
37       `&'a mut Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>: Stream`
38   --> $DIR/issue-30786.rs:105:50
39    |
40 LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
41    |         ---------     -                          ^^^^^^ unsatisfied trait bound introduced here
42
43 error: aborting due to 2 previous errors
44
45 For more information about this error, try `rustc --explain E0599`.