]> git.lizzy.rs Git - rust.git/blob - tests/ui/fn_params_excessive_bools.stderr
Auto merge of #5139 - lzutao:linecount, r=llogiq
[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:17:1
3    |
4 LL | fn g(_: bool, _: bool, _: bool, _: bool) {}
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::fn-params-excessive-bools` implied by `-D warnings`
8    = help: consider refactoring bools into two-variant enums
9
10 error: more than 3 bools in function parameters
11   --> $DIR/fn_params_excessive_bools.rs:20: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:24: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:29: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:41: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:42: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