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