1 error: unneeded unit return type
2 --> $DIR/unused_unit.rs:19:59
4 LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) ->
5 | ___________________________________________________________^
7 | |__________^ help: remove the `-> ()`
9 note: the lint level is defined here
10 --> $DIR/unused_unit.rs:12:9
12 LL | #![deny(clippy::unused_unit)]
15 error: unneeded unit return type
16 --> $DIR/unused_unit.rs:29:19
18 LL | fn into(self) -> () {
19 | ^^^^^ help: remove the `-> ()`
21 error: unneeded unit expression
22 --> $DIR/unused_unit.rs:30:9
25 | ^^ help: remove the final `()`
27 error: unneeded unit return type
28 --> $DIR/unused_unit.rs:34:18
30 LL | fn return_unit() -> () { () }
31 | ^^^^^ help: remove the `-> ()`
33 error: unneeded unit expression
34 --> $DIR/unused_unit.rs:34:26
36 LL | fn return_unit() -> () { () }
37 | ^^ help: remove the final `()`
40 --> $DIR/unused_unit.rs:44:14
43 | ^^ help: remove the `()`
46 --> $DIR/unused_unit.rs:46:11
49 | ^^ help: remove the `()`
51 error: aborting due to 7 previous errors