2015-12-21 10:40:19 +01:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![plugin(clippy)]
|
|
|
|
|
|
|
|
extern crate rustc_serialize;
|
|
|
|
|
2016-03-19 17:48:29 +01: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)]
|
|
|
|
#[derive(RustcEncodable)]
|
|
|
|
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
|
|
|
}
|