]> git.lizzy.rs Git - rust.git/blob - tests/used_underscore_binding_macro.rs
Fix deploy.sh III
[rust.git] / tests / used_underscore_binding_macro.rs
1 #![feature(plugin)]
2 #![plugin(clippy)]
3
4 extern crate rustc_serialize;
5
6 /// Test that we do not lint for unused underscores in a `MacroAttribute` expansion
7 #[deny(used_underscore_binding)]
8 #[derive(RustcEncodable)]
9 struct MacroAttributesTest {
10     _foo: u32,
11 }
12
13 #[test]
14 fn macro_attributes_test() {
15     let _ = MacroAttributesTest { _foo: 0 };
16 }