1 error: passing a unit value to a function
2 --> $DIR/unit_arg.rs:63: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:66: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:67: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:72: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:75: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:76: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:80: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 LL + taking_multiple_units(
148 error: passing a unit value to a function
149 --> $DIR/unit_arg.rs:91:13
151 LL | None.or(Some(foo(2)));
154 help: move the expression in front of the call and replace it with the unit literal `()`
162 error: passing a unit value to a function
163 --> $DIR/unit_arg.rs:94:5
168 help: move the expression in front of the call and replace it with the unit literal `()`
174 error: passing a unit value to a function
175 --> $DIR/unit_arg.rs:131:5
180 help: move the expression in front of the call and replace it with the unit literal `()`
186 error: aborting due to 10 previous errors