fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.3 KiB45 linesraw
1error[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
3   |
4LL | pub struct Map<S, F> {
5   | --------------------
6   | |
7   | method `filterx` not found for this struct
8   | doesn't satisfy `_: StreamExt`
9...
10LL |     let filter = map.filterx(|x: &_| true);
11   |                      ^^^^^^^ method cannot be called on `Map<Repeat, {closure@issue-30786.rs:119:27}>` due to unsatisfied trait bounds
12   |
13note: the following trait bounds were not satisfied:
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
18   |
19LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
20   |         ---------     -                          ^^^^^^ unsatisfied trait bound introduced here
21
22error[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
24   |
25LL | pub struct Filter<S, F> {
26   | -----------------------
27   | |
28   | method `countx` not found for this struct
29   | doesn't satisfy `_: StreamExt`
30...
31LL |     let count = filter.countx();
32   |                        ^^^^^^ method cannot be called due to unsatisfied trait bounds
33   |
34note: 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:131:30: 131:37}>: Stream`
36      `&'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`
37      `&'a mut Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, {closure@$DIR/issue-30786.rs:131:30: 131:37}>: Stream`
38  --> $DIR/issue-30786.rs:98:50
39   |
40LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
41   |         ---------     -                          ^^^^^^ unsatisfied trait bound introduced here
42
43error: aborting due to 2 previous errors
44
45For more information about this error, try `rustc --explain E0599`.