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...
29 help: ...and use unit literals instead
31 LL | taking_two_units((), ());
34 error: passing unit values to a function
35 --> $DIR/unit_arg_empty_blocks.rs:18:5
37 LL | taking_three_units({}, foo(0), foo(1));
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 help: move the expressions in front of the call...
45 help: ...and use unit literals instead
47 LL | taking_three_units((), (), ());
50 error: aborting due to 4 previous errors