]> git.lizzy.rs Git - rust.git/blob - tests/used_underscore_binding_macro.rs
Update stderrs for print and write_literal
[rust.git] / tests / used_underscore_binding_macro.rs
1 #![feature(plugin)]
2 #![plugin(clippy)]
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 }