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