error: unneeded unit return type --> $DIR/unused_unit.rs:27:59 | 27 | pub fn get_unit (), G>(&self, f: F, _g: G) -> | ___________________________________________________________^ 28 | | () | |__________^ help: remove the `-> ()` | note: lint level defined here --> $DIR/unused_unit.rs:20:9 | 20 | #![deny(clippy::unused_unit)] | ^^^^^^^^^^^^^^^^^^^ error: unneeded unit return type --> $DIR/unused_unit.rs:36:19 | 36 | fn into(self) -> () { | ^^^^^ help: remove the `-> ()` error: unneeded unit expression --> $DIR/unused_unit.rs:37:9 | 37 | () | ^^ help: remove the final `()` error: unneeded unit return type --> $DIR/unused_unit.rs:41:18 | 41 | fn return_unit() -> () { () } | ^^^^^ help: remove the `-> ()` error: unneeded unit expression --> $DIR/unused_unit.rs:41:26 | 41 | fn return_unit() -> () { () } | ^^ help: remove the final `()` error: unneeded `()` --> $DIR/unused_unit.rs:48:14 | 48 | break(); | ^^ help: remove the `()` error: unneeded `()` --> $DIR/unused_unit.rs:50:11 | 50 | return(); | ^^ help: remove the `()` error: aborting due to 7 previous errors