]> git.lizzy.rs Git - rust.git/blob - tests/ui/fn_params_excessive_bools.stderr
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
[rust.git] / tests / ui / fn_params_excessive_bools.stderr
1 error: more than 3 bools in function parameters
2   --> $DIR/fn_params_excessive_bools.rs:19:1
3    |
4 LL | fn g(_: bool, _: bool, _: bool, _: bool) {}
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = help: consider refactoring bools into two-variant enums
8    = note: `-D clippy::fn-params-excessive-bools` implied by `-D warnings`
9
10 error: more than 3 bools in function parameters
11   --> $DIR/fn_params_excessive_bools.rs:22:1
12    |
13 LL | fn t(_: S, _: S, _: Box<S>, _: Vec<u32>, _: bool, _: bool, _: bool, _: bool) {}
14    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = help: consider refactoring bools into two-variant enums
17
18 error: more than 3 bools in function parameters
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
36    |
37 LL |     fn f(&self, _: bool, _: bool, _: bool, _: bool) {}
38    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39    |
40    = help: consider refactoring bools into two-variant enums
41
42 error: more than 3 bools in function parameters
43   --> $DIR/fn_params_excessive_bools.rs:50:5
44    |
45 LL | /     fn n(_: bool, _: u32, _: bool, _: Box<u32>, _: bool, _: bool) {
46 LL | |         fn nn(_: bool, _: bool, _: bool, _: bool) {}
47 LL | |     }
48    | |_____^
49    |
50    = help: consider refactoring bools into two-variant enums
51
52 error: more than 3 bools in function parameters
53   --> $DIR/fn_params_excessive_bools.rs:51:9
54    |
55 LL |         fn nn(_: bool, _: bool, _: bool, _: bool) {}
56    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57    |
58    = help: consider refactoring bools into two-variant enums
59
60 error: aborting due to 7 previous errors
61