blob: 265017c51d92452be0236c06f1d6895a90bea1d5 [file] [log] [blame]
// run-pass
#![allow(clippy::useless_attribute)] //issue #2910
#[macro_use]
extern crate serde_derive;
/// Tests that we do not lint for unused underscores in a `MacroAttribute`
/// expansion
#[deny(clippy::used_underscore_binding)]
#[derive(Deserialize)]
struct MacroAttributesTest {
_foo: u32,
}
#[test]
fn macro_attributes_test() {
let _ = MacroAttributesTest { _foo: 0 };
}
fn main() {}