1 error: passing a unit value to a function
2 --> $DIR/unit_arg.rs:55:5
9 = note: `-D clippy::unit-arg` implied by `-D warnings`
10 help: remove the semicolon from the last statement in the block
14 help: or move the expression in front of the call and replace it with the unit literal `()`
22 error: passing a unit value to a function
23 --> $DIR/unit_arg.rs:58:5
28 help: move the expression in front of the call and replace it with the unit literal `()`
34 error: passing a unit value to a function
35 --> $DIR/unit_arg.rs:59:5
43 help: remove the semicolon from the last statement in the block
47 help: or move the expression in front of the call and replace it with the unit literal `()`
56 error: passing a unit value to a function
57 --> $DIR/unit_arg.rs:64:5
64 help: remove the semicolon from the last statement in the block
68 help: or move the expression in front of the call and replace it with the unit literal `()`
76 error: passing unit values to a function
77 --> $DIR/unit_arg.rs:67:5
79 LL | taking_multiple_units(foo(0), foo(1));
80 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82 help: move the expressions in front of the call and replace them with the unit literal `()`
86 LL | taking_multiple_units((), ());
89 error: passing unit values to a function
90 --> $DIR/unit_arg.rs:68:5
92 LL | / taking_multiple_units(foo(0), {
98 help: remove the semicolon from the last statement in the block
102 help: or move the expressions in front of the call and replace them with the unit literal `()`
109 LL | taking_multiple_units((), ());
112 error: passing unit values to a function
113 --> $DIR/unit_arg.rs:72:5
115 LL | / taking_multiple_units(
124 help: remove the semicolon from the last statement in the block
128 help: remove the semicolon from the last statement in the block
132 help: or move the expressions in front of the call and replace them with the unit literal `()`
142 error: passing a unit value to a function
143 --> $DIR/unit_arg.rs:83:13
145 LL | None.or(Some(foo(2)));
148 help: move the expression in front of the call and replace it with the unit literal `()`
156 error: passing a unit value to a function
157 --> $DIR/unit_arg.rs:86:5
162 help: move the expression in front of the call and replace it with the unit literal `()`
168 error: passing a unit value to a function
169 --> $DIR/unit_arg.rs:123:5
174 help: move the expression in front of the call and replace it with the unit literal `()`
180 error: aborting due to 10 previous errors