mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-25 04:23:22 +00:00
18 lines
356 B
Rust
18 lines
356 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 };
|
|
}
|