summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/fn_params_excessive_bools.stderr
blob: 43363b46972c345583c0929ab1638c61f36d2b78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
error: more than 3 bools in function parameters
  --> $DIR/fn_params_excessive_bools.rs:19:1
   |
LL | fn g(_: bool, _: bool, _: bool, _: bool) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider refactoring bools into two-variant enums
   = note: `-D clippy::fn-params-excessive-bools` implied by `-D warnings`

error: more than 3 bools in function parameters
  --> $DIR/fn_params_excessive_bools.rs:22:1
   |
LL | fn t(_: S, _: S, _: Box<S>, _: Vec<u32>, _: bool, _: bool, _: bool, _: bool) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider refactoring bools into two-variant enums

error: more than 3 bools in function parameters
  --> $DIR/fn_params_excessive_bools.rs:27:5
   |
LL |     fn f(_: bool, _: bool, _: bool, _: bool);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider refactoring bools into two-variant enums

error: more than 3 bools in function parameters
  --> $DIR/fn_params_excessive_bools.rs:31:5
   |
LL |     fn i(_: bool, _: bool, _: bool, _: bool) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider refactoring bools into two-variant enums

error: more than 3 bools in function parameters
  --> $DIR/fn_params_excessive_bools.rs:35:5
   |
LL |     fn f(&self, _: bool, _: bool, _: bool, _: bool) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider refactoring bools into two-variant enums

error: more than 3 bools in function parameters
  --> $DIR/fn_params_excessive_bools.rs:50:5
   |
LL | /     fn n(_: bool, _: u32, _: bool, _: Box<u32>, _: bool, _: bool) {
LL | |         fn nn(_: bool, _: bool, _: bool, _: bool) {}
LL | |     }
   | |_____^
   |
   = help: consider refactoring bools into two-variant enums

error: more than 3 bools in function parameters
  --> $DIR/fn_params_excessive_bools.rs:51:9
   |
LL |         fn nn(_: bool, _: bool, _: bool, _: bool) {}
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider refactoring bools into two-variant enums

error: aborting due to 7 previous errors