]> git.lizzy.rs Git - rust.git/blob - tests/run-pass/used_underscore_binding_macro.rs
Remove all mention and testing of #[plugin(clippy)] and warn if used
[rust.git] / tests / run-pass / used_underscore_binding_macro.rs
1
2
3
4 #[macro_use]
5 extern crate serde_derive;
6
7 /// Test that we do not lint for unused underscores in a `MacroAttribute`
8 /// expansion
9 #[deny(used_underscore_binding)]
10 #[derive(Deserialize)]
11 struct MacroAttributesTest {
12     _foo: u32,
13 }
14
15 #[test]
16 fn macro_attributes_test() {
17     let _ = MacroAttributesTest { _foo: 0 };
18 }
19
20 fn main() {}