rust-clippy/tests/used_underscore_binding_macro.rs
Oliver Schneider 4a70a46d2d
run rustfmt
2017-01-26 11:31:26 +01:00

17 lines
352 B
Rust

#![feature(plugin)]
#![plugin(clippy)]
#[macro_use]
extern crate serde_derive;
/// Test that we do not lint for unused underscores in a `MacroAttribute` expansion
#[deny(used_underscore_binding)]
#[derive(Deserialize)]
struct MacroAttributesTest {
_foo: u32,
}
#[test]
fn macro_attributes_test() {
let _ = MacroAttributesTest { _foo: 0 };
}