summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/struct_excessive_bools.stderr
blob: e4d50043acb0bb9ed047104c85a838e28b3416e4 (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
error: more than 3 bools in a struct
  --> $DIR/struct_excessive_bools.rs:22:1
   |
LL | / struct BadFoo {
LL | |     a: bool,
LL | |     b: bool,
LL | |     c: bool,
LL | |     d: bool,
LL | | }
   | |_^
   |
   = help: consider using a state machine or refactoring bools into two-variant enums
   = note: `-D clippy::struct-excessive-bools` implied by `-D warnings`

error: more than 3 bools in a struct
  --> $DIR/struct_excessive_bools.rs:38:5
   |
LL | /     struct FooFoo {
LL | |         a: bool,
LL | |         b: bool,
LL | |         c: bool,
LL | |         d: bool,
LL | |     }
   | |_____^
   |
   = help: consider using a state machine or refactoring bools into two-variant enums

error: aborting due to 2 previous errors