diff options
| author | akida31 <akida3@protonmail.com> | 2022-12-13 18:24:18 +0100 |
|---|---|---|
| committer | akida31 <akida3@protonmail.com> | 2022-12-13 18:24:18 +0100 |
| commit | 05bc2513ef55a3b71c7ccbda41f07be9f10f3a7f (patch) | |
| tree | 114165b813de18b84184bc88b28e44984e4529f5 | |
| parent | 757396f5fec622fc292dc10caf1db40155df049b (diff) | |
| download | rust-05bc2513ef55a3b71c7ccbda41f07be9f10f3a7f.tar.gz rust-05bc2513ef55a3b71c7ccbda41f07be9f10f3a7f.zip | |
fix tests
| -rw-r--r-- | src/test/ui/mismatched_types/closure-arg-type-mismatch.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/mismatched_types/issue-36053-2.stderr | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/test/ui/mismatched_types/closure-arg-type-mismatch.stderr b/src/test/ui/mismatched_types/closure-arg-type-mismatch.stderr index bfc243b68a8..961ef32cbd3 100644 --- a/src/test/ui/mismatched_types/closure-arg-type-mismatch.stderr +++ b/src/test/ui/mismatched_types/closure-arg-type-mismatch.stderr @@ -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 diff --git a/src/test/ui/mismatched_types/issue-36053-2.stderr b/src/test/ui/mismatched_types/issue-36053-2.stderr index 0f035b89dd9..1a696752e87 100644 --- a/src/test/ui/mismatched_types/issue-36053-2.stderr +++ b/src/test/ui/mismatched_types/issue-36053-2.stderr @@ -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 |
