blob: ce4fe830a0a210e17e692b00fa01baf6f4c444fe [file] [log] [blame]
#![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,
}
}