]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/fn_params_excessive_bools.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / fn_params_excessive_bools.stderr
1 error: more than 3 bools in function parameters
2 --> $DIR/fn_params_excessive_bools.rs:18: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:21: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:25: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:30:5
28 |
29 LL | fn f(&self, _: 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:42:5
36 |
37 LL | / fn n(_: bool, _: u32, _: bool, _: Box<u32>, _: bool, _: bool) {
38 LL | | fn nn(_: bool, _: bool, _: bool, _: bool) {}
39 LL | | }
40 | |_____^
41 |
42 = help: consider refactoring bools into two-variant enums
43
44 error: more than 3 bools in function parameters
45 --> $DIR/fn_params_excessive_bools.rs:43:9
46 |
47 LL | fn nn(_: bool, _: bool, _: bool, _: bool) {}
48 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 |
50 = help: consider refactoring bools into two-variant enums
51
52 error: aborting due to 6 previous errors
53