2015-12-21 09:40:19 +00:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![plugin(clippy)]
|
|
|
|
|
2017-01-24 17:06:17 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate serde_derive;
|
2015-12-21 09:40:19 +00:00
|
|
|
|
2017-04-12 09:06:32 +00:00
|
|
|
/// Test that we do not lint for unused underscores in a `MacroAttribute`
|
|
|
|
/// expansion
|
2015-12-21 09:40:19 +00:00
|
|
|
#[deny(used_underscore_binding)]
|
2017-01-24 10:31:42 +00:00
|
|
|
#[derive(Deserialize)]
|
2015-12-21 09:40:19 +00:00
|
|
|
struct MacroAttributesTest {
|
|
|
|
_foo: u32,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn macro_attributes_test() {
|
2016-06-05 23:42:39 +00:00
|
|
|
let _ = MacroAttributesTest { _foo: 0 };
|
2015-12-21 09:40:19 +00:00
|
|
|
}
|