1 error[E0057]: this function takes 0 arguments but 1 argument was supplied
2 --> $DIR/exotic-calls.rs:2:5
5 | ^ ---- argument of type `i32` unexpected
7 note: callable defined here
8 --> $DIR/exotic-calls.rs:1:11
10 LL | fn foo<T: Fn()>(t: T) {
12 help: remove the extra argument
17 error[E0057]: this function takes 0 arguments but 1 argument was supplied
18 --> $DIR/exotic-calls.rs:7:5
21 | ^ ---- argument of type `i32` unexpected
23 note: type parameter defined here
24 --> $DIR/exotic-calls.rs:6:11
26 LL | fn bar(t: impl Fn()) {
28 help: remove the extra argument
33 error[E0057]: this function takes 0 arguments but 1 argument was supplied
34 --> $DIR/exotic-calls.rs:16:5
37 | ^^^^^ ---- argument of type `i32` unexpected
39 note: opaque type defined here
40 --> $DIR/exotic-calls.rs:11:13
42 LL | fn baz() -> impl Fn() {
44 help: remove the extra argument
49 error[E0057]: this function takes 0 arguments but 1 argument was supplied
50 --> $DIR/exotic-calls.rs:22:5
53 | ^ ---- argument of type `i32` unexpected
55 note: closure defined here
56 --> $DIR/exotic-calls.rs:21:13
60 help: remove the extra argument
65 error: aborting due to 4 previous errors
67 For more information about this error, try `rustc --explain E0057`.