]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-16939.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-16939.stderr
index 8e4237039fad742c4b7b448238cc1da91f6e08af..294524f0b6148de09fbe98c04247f78f4dc0ad71 100644 (file)
@@ -2,15 +2,17 @@ error[E0057]: this function takes 0 arguments but 1 argument was supplied
   --> $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