Skip to content

Commit 1d79588

Browse files
committed
Update ui test
1 parent d5256b7 commit 1d79588

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/ui/mismatched_types/closure-arg-count.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | [1, 2, 3].sort_by(|| panic!());
55
| ^^^^^^^ -- takes 0 arguments
66
| |
77
| expected closure that takes 2 arguments
8-
help: change the closure to take and ignore the expected arguments
8+
help: consider changing the closure to take and ignore the expected arguments
99
|
1010
LL | [1, 2, 3].sort_by(|_, _| panic!());
1111
| ^^^^^^
@@ -55,7 +55,7 @@ note: required by `f`
5555
|
5656
LL | fn f<F: Fn<usize>>(_: F) {}
5757
| ^^^^^^^^^^^^^^^^^^^^^^^^
58-
help: change the closure to take and ignore the expected argument
58+
help: consider changing the closure to take and ignore the expected argument
5959
|
6060
LL | f(|_| panic!());
6161
| ^^^

0 commit comments

Comments
 (0)