@@ -21,16 +21,14 @@ error[E0599]: the method `count` exists for struct `Filter<Fuse<Once<&str>>, {cl
21
21
LL | once::<&str>("str").fuse().filter(|a: &str| true).count();
22
22
| --------- ^^^^^ method cannot be called due to unsatisfied trait bounds
23
23
| |
24
- | doesn't satisfy `_: FnMut <(&&str,)>` or `_: FnOnce <(&&str,)>`
24
+ | doesn't satisfy `<_ as FnOnce <(&&str,)>>::Output = bool ` or `_: FnMut <(&&str,)>`
25
25
|
26
26
= note: the following trait bounds were not satisfied:
27
- `{closure@$DIR/issue-36053-2.rs:7:39: 7:48}: FnMut<(&&str,)>`
28
- which is required by `Filter<Fuse<std::iter::Once<&str>>, {closure@$DIR/issue-36053-2.rs:7:39: 7:48}>: Iterator`
29
- `{closure@$DIR/issue-36053-2.rs:7:39: 7:48}: FnOnce<(&&str,)>`
27
+ `<{closure@$DIR/issue-36053-2.rs:7:39: 7:48} as FnOnce<(&&str,)>>::Output = bool`
30
28
which is required by `Filter<Fuse<std::iter::Once<&str>>, {closure@$DIR/issue-36053-2.rs:7:39: 7:48}>: Iterator`
31
29
`{closure@$DIR/issue-36053-2.rs:7:39: 7:48}: FnMut<(&&str,)>`
32
- which is required by `&mut Filter<Fuse<std::iter::Once<&str>>, {closure@$DIR/issue-36053-2.rs:7:39: 7:48}>: Iterator`
33
- `{closure@$DIR/issue-36053-2.rs:7:39: 7:48}: FnOnce<(&&str,)> `
30
+ which is required by `Filter<Fuse<std::iter::Once<&str>>, {closure@$DIR/issue-36053-2.rs:7:39: 7:48}>: Iterator`
31
+ `Filter<Fuse<std::iter::Once<&str>>, {closure@$DIR/issue-36053-2.rs:7:39: 7:48}>: Iterator `
34
32
which is required by `&mut Filter<Fuse<std::iter::Once<&str>>, {closure@$DIR/issue-36053-2.rs:7:39: 7:48}>: Iterator`
35
33
36
34
error: aborting due to 2 previous errors
0 commit comments