1 error: more than 3 bools in function parameters
2 --> $DIR/fn_params_excessive_bools.rs:17:1
4 LL | fn g(_: bool, _: bool, _: bool, _: bool) {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::fn-params-excessive-bools` implied by `-D warnings`
8 = help: consider refactoring bools into two-variant enums
10 error: more than 3 bools in function parameters
11 --> $DIR/fn_params_excessive_bools.rs:20:1
13 LL | fn t(_: S, _: S, _: Box<S>, _: Vec<u32>, _: bool, _: bool, _: bool, _: bool) {}
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 = help: consider refactoring bools into two-variant enums
18 error: more than 3 bools in function parameters
19 --> $DIR/fn_params_excessive_bools.rs:24:5
21 LL | fn f(_: bool, _: bool, _: bool, _: bool);
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 = help: consider refactoring bools into two-variant enums
26 error: more than 3 bools in function parameters
27 --> $DIR/fn_params_excessive_bools.rs:29:5
29 LL | fn f(&self, _: bool, _: bool, _: bool, _: bool) {}
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 = help: consider refactoring bools into two-variant enums
34 error: more than 3 bools in function parameters
35 --> $DIR/fn_params_excessive_bools.rs:41:5
37 LL | / fn n(_: bool, _: u32, _: bool, _: Box<u32>, _: bool, _: bool) {
38 LL | | fn nn(_: bool, _: bool, _: bool, _: bool) {}
42 = help: consider refactoring bools into two-variant enums
44 error: more than 3 bools in function parameters
45 --> $DIR/fn_params_excessive_bools.rs:42:9
47 LL | fn nn(_: bool, _: bool, _: bool, _: bool) {}
48 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50 = help: consider refactoring bools into two-variant enums
52 error: aborting due to 6 previous errors