@@ -16,15 +16,31 @@ LL | fn t(_: S, _: S, _: Box<S>, _: Vec<u32>, _: bool, _: bool, _: bool, _: bool
1616 = help: consider refactoring bools into two-variant enums
1717
1818error: more than 3 bools in function parameters
19- --> $DIR/fn_params_excessive_bools.rs:33:5
19+ --> $DIR/fn_params_excessive_bools.rs:27:5
20+ |
21+ LL | fn f(_: bool, _: bool, _: bool, _: bool);
22+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23+ |
24+ = help: consider refactoring bools into two-variant enums
25+
26+ error: more than 3 bools in function parameters
27+ --> $DIR/fn_params_excessive_bools.rs:31:5
28+ |
29+ LL | fn i(_: bool, _: bool, _: bool, _: bool) {}
30+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31+ |
32+ = help: consider refactoring bools into two-variant enums
33+
34+ error: more than 3 bools in function parameters
35+ --> $DIR/fn_params_excessive_bools.rs:35:5
2036 |
2137LL | fn f(&self, _: bool, _: bool, _: bool, _: bool) {}
2238 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2339 |
2440 = help: consider refactoring bools into two-variant enums
2541
2642error: more than 3 bools in function parameters
27- --> $DIR/fn_params_excessive_bools.rs:48 :5
43+ --> $DIR/fn_params_excessive_bools.rs:50 :5
2844 |
2945LL | / fn n(_: bool, _: u32, _: bool, _: Box<u32>, _: bool, _: bool) {
3046LL | | fn nn(_: bool, _: bool, _: bool, _: bool) {}
@@ -34,12 +50,12 @@ LL | | }
3450 = help: consider refactoring bools into two-variant enums
3551
3652error: more than 3 bools in function parameters
37- --> $DIR/fn_params_excessive_bools.rs:49 :9
53+ --> $DIR/fn_params_excessive_bools.rs:51 :9
3854 |
3955LL | fn nn(_: bool, _: bool, _: bool, _: bool) {}
4056 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4157 |
4258 = help: consider refactoring bools into two-variant enums
4359
44- error: aborting due to 5 previous errors
60+ error: aborting due to 7 previous errors
4561
0 commit comments