]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unit_arg.stderr
iterate List by value
[rust.git] / tests / ui / unit_arg.stderr
index 1da00b6f5e9bedba903e9c9498dac17be7577479..21ccc684ea9de9e30944abba009a9ce6958f4e5a 100644 (file)
@@ -1,5 +1,5 @@
 error: passing a unit value to a function
-  --> $DIR/unit_arg.rs:23:9
+  --> $DIR/unit_arg.rs:24:9
    |
 LL |     foo({});
    |         ^^
@@ -11,30 +11,32 @@ LL |     foo(());
    |         ^^
 
 error: passing a unit value to a function
-  --> $DIR/unit_arg.rs:24:9
+  --> $DIR/unit_arg.rs:25:9
    |
 LL |       foo({
    |  _________^
 LL | |         1;
 LL | |     });
    | |_____^
+   |
 help: if you intended to pass a unit value, use a unit literal instead
    |
 LL |     foo(());
    |         ^^
 
 error: passing a unit value to a function
-  --> $DIR/unit_arg.rs:27:9
+  --> $DIR/unit_arg.rs:28:9
    |
 LL |     foo(foo(1));
    |         ^^^^^^
+   |
 help: if you intended to pass a unit value, use a unit literal instead
    |
 LL |     foo(());
    |         ^^
 
 error: passing a unit value to a function
-  --> $DIR/unit_arg.rs:28:9
+  --> $DIR/unit_arg.rs:29:9
    |
 LL |       foo({
    |  _________^
@@ -42,29 +44,32 @@ LL | |         foo(1);
 LL | |         foo(2);
 LL | |     });
    | |_____^
+   |
 help: if you intended to pass a unit value, use a unit literal instead
    |
 LL |     foo(());
    |         ^^
 
 error: passing a unit value to a function
-  --> $DIR/unit_arg.rs:32:10
+  --> $DIR/unit_arg.rs:33:10
    |
 LL |     foo3({}, 2, 2);
    |          ^^
+   |
 help: if you intended to pass a unit value, use a unit literal instead
    |
 LL |     foo3((), 2, 2);
    |          ^^
 
 error: passing a unit value to a function
-  --> $DIR/unit_arg.rs:34:11
+  --> $DIR/unit_arg.rs:35:11
    |
 LL |       b.bar({
    |  ___________^
 LL | |         1;
 LL | |     });
    | |_____^
+   |
 help: if you intended to pass a unit value, use a unit literal instead
    |
 LL |     b.bar(());