fix tests

This commit is contained in:
akida31 2022-12-13 18:24:18 +01:00
parent 757396f5fe
commit 05bc2513ef
No known key found for this signature in database
GPG Key ID: 02E1AF2C3D9FB7C9
2 changed files with 0 additions and 8 deletions

View File

@ -15,10 +15,6 @@ note: required by a bound in `map`
|
LL | F: FnMut(Self::Item) -> B,
| ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Iterator::map`
help: consider borrowing the argument
|
LL | a.iter().map(|_: &(u32, u32)| 45);
| ~~~~~~~~~~~
error[E0631]: type mismatch in closure arguments
--> $DIR/closure-arg-type-mismatch.rs:4:14

View File

@ -15,10 +15,6 @@ note: required by a bound in `filter`
|
LL | P: FnMut(&Self::Item) -> bool,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Iterator::filter`
help: consider borrowing the argument
|
LL | once::<&str>("str").fuse().filter(|a: &&str| true).count();
| ~~~~~
error[E0599]: the method `count` exists for struct `Filter<Fuse<std::iter::Once<&str>>, [closure@$DIR/issue-36053-2.rs:7:39: 7:48]>`, but its trait bounds were not satisfied
--> $DIR/issue-36053-2.rs:7:55