error: passing a unit value to a function --> $DIR/unit_arg.rs:25:9 | 25 | foo({}); | ^^ | = note: `-D clippy::unit-arg` implied by `-D warnings` help: if you intended to pass a unit value, use a unit literal instead | 25 | foo(()); | ^^ error: passing a unit value to a function --> $DIR/unit_arg.rs:26:9 | 26 | foo({ 1; }); | ^^^^^^ help: if you intended to pass a unit value, use a unit literal instead | 26 | foo(()); | ^^ error: passing a unit value to a function --> $DIR/unit_arg.rs:27:9 | 27 | foo(foo(1)); | ^^^^^^ help: if you intended to pass a unit value, use a unit literal instead | 27 | foo(()); | ^^ error: passing a unit value to a function --> $DIR/unit_arg.rs:28:9 | 28 | foo({ | _________^ 29 | | foo(1); 30 | | foo(2); 31 | | }); | |_____^ help: if you intended to pass a unit value, use a unit literal instead | 28 | foo(()); | ^^ error: passing a unit value to a function --> $DIR/unit_arg.rs:32:10 | 32 | foo3({}, 2, 2); | ^^ help: if you intended to pass a unit value, use a unit literal instead | 32 | foo3((), 2, 2); | ^^ error: passing a unit value to a function --> $DIR/unit_arg.rs:34:11 | 34 | b.bar({ 1; }); | ^^^^^^ help: if you intended to pass a unit value, use a unit literal instead | 34 | b.bar(()); | ^^ error: aborting due to 6 previous errors