blob: 901eb4e50398888f50747c1ba2a496703474d82e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use serde::Deserialize;
/// Tests that we do not lint for unused underscores in a `MacroAttribute`
/// expansion
#[deny(clippy::used_underscore_binding)]
#[derive(Deserialize)]
struct MacroAttributesTest {
_foo: u32,
}
#[test]
fn macro_attributes_test() {
let _ = MacroAttributesTest { _foo: 0 };
}
fn main() {}
|