--> $DIR/issue-16939.rs:5:9
|
LL | |t| f(t);
- | ^ - supplied 1 argument
- | |
- | expected 0 arguments
+ | ^ - argument unexpected
|
note: associated function defined here
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
LL | extern "rust-call" fn call(&self, args: Args) -> Self::Output;
| ^^^^
+help: remove the extra argument
+ |
+LL | |t| f();
+ | ~~~
error: aborting due to previous error