Skip to content

Commit a71deb2

Browse files
committed
Fix ui test
1 parent 27c0d56 commit a71deb2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

+8-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ error[E0593]: closure is expected to take 2 arguments, but it takes 0 arguments
22
--> $DIR/closure-arg-count.rs:15:15
33
|
44
LL | [1, 2, 3].sort_by(|| panic!());
5-
| ^^^^^^^ -- takes 0 arguments
6-
| |
5+
| ^^^^^^^ --
6+
| | |
7+
| | takes 0 arguments
8+
| | help: change the closure to take and ignore the arguments: `|_, _|`
79
| expected closure that takes 2 arguments
810

911
error[E0593]: closure is expected to take 2 arguments, but it takes 1 argument
@@ -42,8 +44,10 @@ error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
4244
--> $DIR/closure-arg-count.rs:23:5
4345
|
4446
LL | f(|| panic!());
45-
| ^ -- takes 0 arguments
46-
| |
47+
| ^ --
48+
| | |
49+
| | takes 0 arguments
50+
| | help: change the closure to take and ignore the argument: `|_|`
4751
| expected closure that takes 1 argument
4852
|
4953
note: required by `f`

0 commit comments

Comments
 (0)