mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-04 18:40:18 +00:00
44 lines
525 B
Rust
44 lines
525 B
Rust
#![warn(clippy::struct_excessive_bools)]
|
|
|
|
macro_rules! foo {
|
|
() => {
|
|
struct MacroFoo {
|
|
a: bool,
|
|
b: bool,
|
|
c: bool,
|
|
d: bool,
|
|
}
|
|
};
|
|
}
|
|
|
|
foo!();
|
|
|
|
struct Foo {
|
|
a: bool,
|
|
b: bool,
|
|
c: bool,
|
|
}
|
|
|
|
struct BadFoo {
|
|
a: bool,
|
|
b: bool,
|
|
c: bool,
|
|
d: bool,
|
|
}
|
|
|
|
#[repr(C)]
|
|
struct Bar {
|
|
a: bool,
|
|
b: bool,
|
|
c: bool,
|
|
d: bool,
|
|
}
|
|
|
|
fn main() {
|
|
struct FooFoo {
|
|
a: bool,
|
|
b: bool,
|
|
c: bool,
|
|
d: bool,
|
|
}
|
|
}
|