@@ -21,16 +21,14 @@ error[E0599]: the method `count` exists for struct `Filter<Fuse<Once<&str>>, {cl
2121LL | once::<&str>("str").fuse().filter(|a: &str| true).count();
2222 | --------- ^^^^^ method cannot be called due to unsatisfied trait bounds
2323 | |
24- | doesn't satisfy `_: FnMut <(&&str,)>` or `_: FnOnce <(&&str,)>`
24+ | doesn't satisfy `<_ as FnOnce <(&&str,)>>::Output = bool ` or `_: FnMut <(&&str,)>`
2525 |
2626 = 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`
3028 which is required by `Filter<Fuse<std::iter::Once<&str>>, {closure@$DIR/issue-36053-2.rs:7:39: 7:48}>: Iterator`
3129 `{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 `
3432 which is required by `&mut Filter<Fuse<std::iter::Once<&str>>, {closure@$DIR/issue-36053-2.rs:7:39: 7:48}>: Iterator`
3533
3634error: aborting due to 2 previous errors
0 commit comments