Skip to content

Commit 05bc251

Browse files
committed
fix tests
1 parent 757396f commit 05bc251

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Diff for: src/test/ui/mismatched_types/closure-arg-type-mismatch.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ note: required by a bound in `map`
1515
|
1616
LL | F: FnMut(Self::Item) -> B,
1717
| ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Iterator::map`
18-
help: consider borrowing the argument
19-
|
20-
LL | a.iter().map(|_: &(u32, u32)| 45);
21-
| ~~~~~~~~~~~
2218

2319
error[E0631]: type mismatch in closure arguments
2420
--> $DIR/closure-arg-type-mismatch.rs:4:14

Diff for: src/test/ui/mismatched_types/issue-36053-2.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ note: required by a bound in `filter`
1515
|
1616
LL | P: FnMut(&Self::Item) -> bool,
1717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Iterator::filter`
18-
help: consider borrowing the argument
19-
|
20-
LL | once::<&str>("str").fuse().filter(|a: &&str| true).count();
21-
| ~~~~~
2218

2319
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
2420
--> $DIR/issue-36053-2.rs:7:55

0 commit comments

Comments
 (0)