]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/tuple/wrong_argument_ice-4.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / tuple / wrong_argument_ice-4.stderr
index fef5dca856db36592aad666b9a3cde8b603a3ffb..f8dfc4cd043cd07c4310b7c14575f14c7cbe3620 100644 (file)
@@ -3,12 +3,20 @@ error[E0057]: this function takes 0 arguments but 1 argument was supplied
    |
 LL |       (|| {})(|| {
    |  _____^^^^^^^_-
-   | |     |
-   | |     expected 0 arguments
 LL | |
 LL | |         let b = 1;
 LL | |     });
-   | |_____- supplied 1 argument
+   | |_____- argument unexpected
+   |
+note: closure defined here
+  --> $DIR/wrong_argument_ice-4.rs:2:6
+   |
+LL |     (|| {})(|| {
+   |      ^^
+help: remove the extra argument
+   |
+LL |     (|| {})();
+   |     ~~~~~~~~~
 
 error: aborting due to previous error