]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unit_arg.stderr
Merge commit '7ea7cd165ad6705603852771bf82cc2fd6560db5' into clippyup2
[rust.git] / tests / ui / unit_arg.stderr
index 862534b18ecbb20c0e89f260e070a71b8890dc1b..21ccc684ea9de9e30944abba009a9ce6958f4e5a 100644 (file)
@@ -18,6 +18,7 @@ LL |       foo({
 LL | |         1;
 LL | |     });
    | |_____^
+   |
 help: if you intended to pass a unit value, use a unit literal instead
    |
 LL |     foo(());
@@ -28,6 +29,7 @@ error: passing a unit value to a function
    |
 LL |     foo(foo(1));
    |         ^^^^^^
+   |
 help: if you intended to pass a unit value, use a unit literal instead
    |
 LL |     foo(());
@@ -42,6 +44,7 @@ LL | |         foo(1);
 LL | |         foo(2);
 LL | |     });
    | |_____^
+   |
 help: if you intended to pass a unit value, use a unit literal instead
    |
 LL |     foo(());
@@ -52,6 +55,7 @@ error: passing a unit value to a function
    |
 LL |     foo3({}, 2, 2);
    |          ^^
+   |
 help: if you intended to pass a unit value, use a unit literal instead
    |
 LL |     foo3((), 2, 2);
@@ -65,6 +69,7 @@ LL |       b.bar({
 LL | |         1;
 LL | |     });
    | |_____^
+   |
 help: if you intended to pass a unit value, use a unit literal instead
    |
 LL |     b.bar(());