@@ -16,15 +16,31 @@ LL | fn t(_: S, _: S, _: Box<S>, _: Vec<u32>, _: bool, _: bool, _: bool, _: bool
16
16
= help: consider refactoring bools into two-variant enums
17
17
18
18
error: 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
20
36
|
21
37
LL | fn f(&self, _: bool, _: bool, _: bool, _: bool) {}
22
38
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23
39
|
24
40
= help: consider refactoring bools into two-variant enums
25
41
26
42
error: 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
28
44
|
29
45
LL | / fn n(_: bool, _: u32, _: bool, _: Box<u32>, _: bool, _: bool) {
30
46
LL | | fn nn(_: bool, _: bool, _: bool, _: bool) {}
@@ -34,12 +50,12 @@ LL | | }
34
50
= help: consider refactoring bools into two-variant enums
35
51
36
52
error: 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
38
54
|
39
55
LL | fn nn(_: bool, _: bool, _: bool, _: bool) {}
40
56
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41
57
|
42
58
= help: consider refactoring bools into two-variant enums
43
59
44
- error: aborting due to 5 previous errors
60
+ error: aborting due to 7 previous errors
45
61
0 commit comments