11error: passing a unit value to a function
2- --> $DIR/unit_arg.rs:35 :5
2+ --> $DIR/unit_arg.rs:55 :5
33 |
44LL | / foo({
55LL | | 1;
@@ -20,7 +20,7 @@ LL | foo(());
2020 |
2121
2222error: passing a unit value to a function
23- --> $DIR/unit_arg.rs:38 :5
23+ --> $DIR/unit_arg.rs:58 :5
2424 |
2525LL | foo(foo(1));
2626 | ^^^^^^^^^^^
@@ -32,7 +32,7 @@ LL | foo(());
3232 |
3333
3434error: passing a unit value to a function
35- --> $DIR/unit_arg.rs:39 :5
35+ --> $DIR/unit_arg.rs:59 :5
3636 |
3737LL | / foo({
3838LL | | foo(1);
@@ -54,7 +54,7 @@ LL | foo(());
5454 |
5555
5656error: passing a unit value to a function
57- --> $DIR/unit_arg.rs:44 :5
57+ --> $DIR/unit_arg.rs:64 :5
5858 |
5959LL | / b.bar({
6060LL | | 1;
@@ -74,7 +74,7 @@ LL | b.bar(());
7474 |
7575
7676error: passing unit values to a function
77- --> $DIR/unit_arg.rs:47 :5
77+ --> $DIR/unit_arg.rs:67 :5
7878 |
7979LL | taking_multiple_units(foo(0), foo(1));
8080 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -87,7 +87,7 @@ LL | taking_multiple_units((), ());
8787 |
8888
8989error: passing unit values to a function
90- --> $DIR/unit_arg.rs:48 :5
90+ --> $DIR/unit_arg.rs:68 :5
9191 |
9292LL | / taking_multiple_units(foo(0), {
9393LL | | foo(1);
@@ -110,7 +110,7 @@ LL | taking_multiple_units((), ());
110110 |
111111
112112error: passing unit values to a function
113- --> $DIR/unit_arg.rs:52 :5
113+ --> $DIR/unit_arg.rs:72 :5
114114 |
115115LL | / taking_multiple_units(
116116LL | | {
@@ -140,7 +140,7 @@ LL | foo(2);
140140 ...
141141
142142error: passing a unit value to a function
143- --> $DIR/unit_arg.rs:63 :13
143+ --> $DIR/unit_arg.rs:83 :13
144144 |
145145LL | None.or(Some(foo(2)));
146146 | ^^^^^^^^^^^^
@@ -154,7 +154,7 @@ LL | });
154154 |
155155
156156error: passing a unit value to a function
157- --> $DIR/unit_arg.rs:66 :5
157+ --> $DIR/unit_arg.rs:86 :5
158158 |
159159LL | foo(foo(()));
160160 | ^^^^^^^^^^^^
@@ -166,7 +166,7 @@ LL | foo(());
166166 |
167167
168168error: passing a unit value to a function
169- --> $DIR/unit_arg.rs:102 :5
169+ --> $DIR/unit_arg.rs:123 :5
170170 |
171171LL | Some(foo(1))
172172 | ^^^^^^^^^^^^
0 commit comments