]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | #![warn(clippy::struct_excessive_bools)] |
2 | ||
3 | macro_rules! foo { | |
4 | () => { | |
5 | struct MacroFoo { | |
6 | a: bool, | |
7 | b: bool, | |
8 | c: bool, | |
9 | d: bool, | |
10 | } | |
11 | }; | |
12 | } | |
13 | ||
14 | foo!(); | |
15 | ||
16 | struct Foo { | |
17 | a: bool, | |
18 | b: bool, | |
19 | c: bool, | |
20 | } | |
21 | ||
22 | struct BadFoo { | |
23 | a: bool, | |
24 | b: bool, | |
25 | c: bool, | |
26 | d: bool, | |
27 | } | |
28 | ||
29 | #[repr(C)] | |
30 | struct Bar { | |
31 | a: bool, | |
32 | b: bool, | |
33 | c: bool, | |
34 | d: bool, | |
35 | } | |
36 | ||
37 | fn main() { | |
38 | struct FooFoo { | |
39 | a: bool, | |
40 | b: bool, | |
41 | c: bool, | |
42 | d: bool, | |
43 | } | |
44 | } |