mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
fix tests
This commit is contained in:
parent
757396f5fe
commit
05bc2513ef
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user