]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/missing-unit-argument.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / missing-unit-argument.stderr
index 7a24ffbd81c88d2e6edbd271dcf3e32eafa3b4a8..99c57322d865141092e157d1d25bdee15833ae53 100644 (file)
@@ -7,7 +7,7 @@ LL |     let _: Result<(), String> = Ok();
 help: expected the unit value `()`; create it with empty parentheses
    |
 LL |     let _: Result<(), String> = Ok(());
-   |                                    ^^
+   |                                    ++
 
 error[E0061]: this function takes 2 arguments but 0 arguments were supplied
   --> $DIR/missing-unit-argument.rs:12:5
@@ -51,7 +51,7 @@ LL | fn bar(():()) {}
 help: expected the unit value `()`; create it with empty parentheses
    |
 LL |     bar(());
-   |         ^^
+   |         ++
 
 error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> $DIR/missing-unit-argument.rs:15:7
@@ -67,7 +67,7 @@ LL |     fn baz(self, (): ()) { }
 help: expected the unit value `()`; create it with empty parentheses
    |
 LL |     S.baz(());
-   |           ^^
+   |           ++
 
 error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> $DIR/missing-unit-argument.rs:16:7
@@ -83,7 +83,7 @@ LL |     fn generic<T>(self, _: T) { }
 help: expected the unit value `()`; create it with empty parentheses
    |
 LL |     S.generic::<()>(());
-   |                     ^^
+   |                     ++
 
 error: aborting due to 6 previous errors