]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/struct_excessive_bools.stderr
Auto merge of #101969 - reez12g:issue-101306, r=reez12g
[rust.git] / src / tools / clippy / tests / ui / struct_excessive_bools.stderr
1 error: more than 3 bools in a struct
2   --> $DIR/struct_excessive_bools.rs:22:1
3    |
4 LL | / struct BadFoo {
5 LL | |     a: bool,
6 LL | |     b: bool,
7 LL | |     c: bool,
8 LL | |     d: bool,
9 LL | | }
10    | |_^
11    |
12    = note: `-D clippy::struct-excessive-bools` implied by `-D warnings`
13    = help: consider using a state machine or refactoring bools into two-variant enums
14
15 error: more than 3 bools in a struct
16   --> $DIR/struct_excessive_bools.rs:38:5
17    |
18 LL | /     struct FooFoo {
19 LL | |         a: bool,
20 LL | |         b: bool,
21 LL | |         c: bool,
22 LL | |         d: bool,
23 LL | |     }
24    | |_____^
25    |
26    = help: consider using a state machine or refactoring bools into two-variant enums
27
28 error: aborting due to 2 previous errors
29