]>
Commit | Line | Data |
---|---|---|
7cac9316 XL |
1 | error[E0599]: no method named `count` found for type `std::iter::Filter<std::iter::Fuse<std::iter::Once<&str>>, [closure@$DIR/issue-36053-2.rs:17:39: 17:53]>` in the current scope |
2 | --> $DIR/issue-36053-2.rs:17:55 | |
3 | | | |
4 | 17 | once::<&str>("str").fuse().filter(|a: &str| true).count(); | |
5 | | ^^^^^ | |
6 | | | |
7 | = note: the method `count` exists but the following trait bounds were not satisfied: | |
8 | `[closure@$DIR/issue-36053-2.rs:17:39: 17:53] : std::ops::FnMut<(&_,)>` | |
9 | `std::iter::Filter<std::iter::Fuse<std::iter::Once<&str>>, [closure@$DIR/issue-36053-2.rs:17:39: 17:53]> : std::iter::Iterator` | |
10 | ||
11 | error[E0281]: type mismatch: `[closure@$DIR/issue-36053-2.rs:17:39: 17:53]` implements the trait `for<'r> std::ops::FnMut<(&'r str,)>`, but the trait `for<'r> std::ops::FnMut<(&'r &str,)>` is required | |
12 | --> $DIR/issue-36053-2.rs:17:32 | |
13 | | | |
14 | 17 | once::<&str>("str").fuse().filter(|a: &str| true).count(); | |
15 | | ^^^^^^ -------------- implements `for<'r> std::ops::FnMut<(&'r str,)>` | |
16 | | | | |
17 | | requires `for<'r> std::ops::FnMut<(&'r &str,)>` | |
18 | | expected &str, found str | |
19 | ||
041b39d2 | 20 | error: aborting due to 2 previous errors |
7cac9316 | 21 |