fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
834 B32 linesraw
1error: more than 3 bools in a struct
2  --> $DIR/struct_excessive_bools.rs:22:1
3   |
4LL | / struct BadFoo {
5LL | |
6LL | |     a: bool,
7LL | |     b: bool,
8LL | |     c: bool,
9LL | |     d: bool,
10LL | | }
11   | |_^
12   |
13   = help: consider using a state machine or refactoring bools into two-variant enums
14   = note: `-D clippy::struct-excessive-bools` implied by `-D warnings`
15   = help: to override `-D warnings` add `#[allow(clippy::struct_excessive_bools)]`
16
17error: more than 3 bools in a struct
18  --> $DIR/struct_excessive_bools.rs:39:5
19   |
20LL | /     struct FooFoo {
21LL | |
22LL | |         a: bool,
23LL | |         b: bool,
24LL | |         c: bool,
25LL | |         d: bool,
26LL | |     }
27   | |_____^
28   |
29   = help: consider using a state machine or refactoring bools into two-variant enums
30
31error: aborting due to 2 previous errors
32