@@ -16,13 +16,13 @@ LL + t();
1616 |
1717
1818error[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
2020 |
2121LL | |t| f(t);
2222 | ^ - unexpected argument
2323 |
2424note: callable defined here
25- --> $DIR/exotic-calls.rs:10 :12
25+ --> $DIR/exotic-calls.rs:11 :12
2626 |
2727LL | fn foo2<T: Fn()>(f: T) {
2828 | ^^^^
@@ -33,13 +33,13 @@ LL + |t| f();
3333 |
3434
3535error[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
3737 |
3838LL | t(1i32);
3939 | ^ ---- unexpected argument of type `i32`
4040 |
4141note: type parameter defined here
42- --> $DIR/exotic-calls.rs:15 :11
42+ --> $DIR/exotic-calls.rs:16 :11
4343 |
4444LL | fn bar(t: impl Fn()) {
4545 | ^^^^^^^^^
@@ -50,13 +50,13 @@ LL + t();
5050 |
5151
5252error[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
5454 |
5555LL | baz()(1i32)
5656 | ^^^^^ ---- unexpected argument of type `i32`
5757 |
5858note: opaque type defined here
59- --> $DIR/exotic-calls.rs:20 :13
59+ --> $DIR/exotic-calls.rs:21 :13
6060 |
6161LL | fn baz() -> impl Fn() {
6262 | ^^^^^^^^^
@@ -67,13 +67,13 @@ LL + baz()()
6767 |
6868
6969error[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
7171 |
7272LL | x(1i32);
7373 | ^ ---- unexpected argument of type `i32`
7474 |
7575note: closure defined here
76- --> $DIR/exotic-calls.rs:30 :13
76+ --> $DIR/exotic-calls.rs:31 :13
7777 |
7878LL | let x = || {};
7979 | ^^
0 commit comments