1 error: passing a unit value to a function
2 --> $DIR/unit_arg_empty_blocks.rs:15:5
7 | help: use a unit literal instead: `()`
9 = note: `-D clippy::unit-arg` implied by `-D warnings`
11 error: passing a unit value to a function
12 --> $DIR/unit_arg_empty_blocks.rs:16:5
17 | help: use a unit literal instead: `()`
19 error: passing unit values to a function
20 --> $DIR/unit_arg_empty_blocks.rs:17:5
22 LL | taking_two_units({}, foo(0));
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 help: move the expression in front of the call and replace it with the unit literal `()`
28 LL | taking_two_units((), ());
31 error: passing unit values to a function
32 --> $DIR/unit_arg_empty_blocks.rs:18:5
34 LL | taking_three_units({}, foo(0), foo(1));
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 help: move the expressions in front of the call and replace them with the unit literal `()`
41 LL | taking_three_units((), (), ());
44 error: aborting due to 4 previous errors