LL | taking_two_units({}, foo(0));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
-help: move the expression in front of the call...
+help: move the expression in front of the call and replace it with the unit literal `()`
|
LL | foo(0);
- |
-help: ...and use unit literals instead
- |
LL | taking_two_units((), ());
- | ^^ ^^
+ |
error: passing unit values to a function
--> $DIR/unit_arg_empty_blocks.rs:18:5
LL | taking_three_units({}, foo(0), foo(1));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
-help: move the expressions in front of the call...
+help: move the expressions in front of the call and replace them with the unit literal `()`
|
LL | foo(0);
LL | foo(1);
- |
-help: ...and use unit literals instead
- |
LL | taking_three_units((), (), ());
- | ^^ ^^ ^^
+ |
error: aborting due to 4 previous errors