mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-11 22:02:55 +00:00
90453fd893
Only partially apply suggestions.
16 lines
345 B
Rust
16 lines
345 B
Rust
#![feature(plugin)]
|
|
#![plugin(clippy)]
|
|
|
|
extern crate rustc_serialize;
|
|
|
|
/// Test that we do not lint for unused underscores in a `MacroAttribute` expansion
|
|
#[deny(used_underscore_binding)]
|
|
#[derive(RustcEncodable)]
|
|
struct MacroAttributesTest {
|
|
_foo: u32,
|
|
}
|
|
|
|
#[test]
|
|
fn macro_attributes_test() {
|
|
let _ = MacroAttributesTest { _foo: 0 };
|
|
}
|