Add run-pass test for expansion info

This commit is contained in:
David Tolnay
2016-07-04 14:49:50 -07:00
parent 149c87d7c2
commit a3a7e4085f
3 changed files with 19 additions and 1 deletions
@@ -0,0 +1,12 @@
#![feature(custom_derive, plugin)]
#![plugin(serde_macros, clippy)]
#![deny(identity_op)]
// The derived implementation uses 0+1 to add up the number of fields
// serialized, which Clippy warns about. If the expansion info is registered
// correctly, the Clippy lint is not triggered.
#[derive(Serialize)]
struct A { b: u8 }
fn main() {}