@@ -16,13 +16,13 @@ LL + t();
16
16
|
17
17
18
18
error[E0057]: this function takes 0 arguments but 1 argument was supplied
19
- --> $DIR/exotic-calls.rs:11 :9
19
+ --> $DIR/exotic-calls.rs:12 :9
20
20
|
21
21
LL | |t| f(t);
22
22
| ^ - unexpected argument
23
23
|
24
24
note: callable defined here
25
- --> $DIR/exotic-calls.rs:10 :12
25
+ --> $DIR/exotic-calls.rs:11 :12
26
26
|
27
27
LL | fn foo2<T: Fn()>(f: T) {
28
28
| ^^^^
@@ -33,13 +33,13 @@ LL + |t| f();
33
33
|
34
34
35
35
error[E0057]: this function takes 0 arguments but 1 argument was supplied
36
- --> $DIR/exotic-calls.rs:16 :5
36
+ --> $DIR/exotic-calls.rs:17 :5
37
37
|
38
38
LL | t(1i32);
39
39
| ^ ---- unexpected argument of type `i32`
40
40
|
41
41
note: type parameter defined here
42
- --> $DIR/exotic-calls.rs:15 :11
42
+ --> $DIR/exotic-calls.rs:16 :11
43
43
|
44
44
LL | fn bar(t: impl Fn()) {
45
45
| ^^^^^^^^^
@@ -50,13 +50,13 @@ LL + t();
50
50
|
51
51
52
52
error[E0057]: this function takes 0 arguments but 1 argument was supplied
53
- --> $DIR/exotic-calls.rs:25 :5
53
+ --> $DIR/exotic-calls.rs:26 :5
54
54
|
55
55
LL | baz()(1i32)
56
56
| ^^^^^ ---- unexpected argument of type `i32`
57
57
|
58
58
note: opaque type defined here
59
- --> $DIR/exotic-calls.rs:20 :13
59
+ --> $DIR/exotic-calls.rs:21 :13
60
60
|
61
61
LL | fn baz() -> impl Fn() {
62
62
| ^^^^^^^^^
@@ -67,13 +67,13 @@ LL + baz()()
67
67
|
68
68
69
69
error[E0057]: this function takes 0 arguments but 1 argument was supplied
70
- --> $DIR/exotic-calls.rs:31 :5
70
+ --> $DIR/exotic-calls.rs:32 :5
71
71
|
72
72
LL | x(1i32);
73
73
| ^ ---- unexpected argument of type `i32`
74
74
|
75
75
note: closure defined here
76
- --> $DIR/exotic-calls.rs:30 :13
76
+ --> $DIR/exotic-calls.rs:31 :13
77
77
|
78
78
LL | let x = || {};
79
79
| ^^
0 commit comments