1
1
error: passing a unit value to a function
2
- --> $DIR/unit_arg.rs:35 :5
2
+ --> $DIR/unit_arg.rs:55 :5
3
3
|
4
4
LL | / foo({
5
5
LL | | 1;
@@ -20,7 +20,7 @@ LL | foo(());
20
20
|
21
21
22
22
error: passing a unit value to a function
23
- --> $DIR/unit_arg.rs:38 :5
23
+ --> $DIR/unit_arg.rs:58 :5
24
24
|
25
25
LL | foo(foo(1));
26
26
| ^^^^^^^^^^^
@@ -32,7 +32,7 @@ LL | foo(());
32
32
|
33
33
34
34
error: passing a unit value to a function
35
- --> $DIR/unit_arg.rs:39 :5
35
+ --> $DIR/unit_arg.rs:59 :5
36
36
|
37
37
LL | / foo({
38
38
LL | | foo(1);
@@ -54,7 +54,7 @@ LL | foo(());
54
54
|
55
55
56
56
error: passing a unit value to a function
57
- --> $DIR/unit_arg.rs:44 :5
57
+ --> $DIR/unit_arg.rs:64 :5
58
58
|
59
59
LL | / b.bar({
60
60
LL | | 1;
@@ -74,7 +74,7 @@ LL | b.bar(());
74
74
|
75
75
76
76
error: passing unit values to a function
77
- --> $DIR/unit_arg.rs:47 :5
77
+ --> $DIR/unit_arg.rs:67 :5
78
78
|
79
79
LL | taking_multiple_units(foo(0), foo(1));
80
80
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -87,7 +87,7 @@ LL | taking_multiple_units((), ());
87
87
|
88
88
89
89
error: passing unit values to a function
90
- --> $DIR/unit_arg.rs:48 :5
90
+ --> $DIR/unit_arg.rs:68 :5
91
91
|
92
92
LL | / taking_multiple_units(foo(0), {
93
93
LL | | foo(1);
@@ -110,7 +110,7 @@ LL | taking_multiple_units((), ());
110
110
|
111
111
112
112
error: passing unit values to a function
113
- --> $DIR/unit_arg.rs:52 :5
113
+ --> $DIR/unit_arg.rs:72 :5
114
114
|
115
115
LL | / taking_multiple_units(
116
116
LL | | {
@@ -140,7 +140,7 @@ LL | foo(2);
140
140
...
141
141
142
142
error: passing a unit value to a function
143
- --> $DIR/unit_arg.rs:63 :13
143
+ --> $DIR/unit_arg.rs:83 :13
144
144
|
145
145
LL | None.or(Some(foo(2)));
146
146
| ^^^^^^^^^^^^
@@ -154,7 +154,7 @@ LL | });
154
154
|
155
155
156
156
error: passing a unit value to a function
157
- --> $DIR/unit_arg.rs:66 :5
157
+ --> $DIR/unit_arg.rs:86 :5
158
158
|
159
159
LL | foo(foo(()));
160
160
| ^^^^^^^^^^^^
@@ -166,7 +166,7 @@ LL | foo(());
166
166
|
167
167
168
168
error: passing a unit value to a function
169
- --> $DIR/unit_arg.rs:102 :5
169
+ --> $DIR/unit_arg.rs:123 :5
170
170
|
171
171
LL | Some(foo(1))
172
172
| ^^^^^^^^^^^^
0 commit comments