From 554b81d636adbfff787e71e1b2e66f565d636bed Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 28 Sep 2016 09:25:19 -0700 Subject: [PATCH] Fix compiletest error in newest nightly --- .../tests/compile-fail/reject-unknown-attributes.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/serde_macros/tests/compile-fail/reject-unknown-attributes.rs b/serde_macros/tests/compile-fail/reject-unknown-attributes.rs index 5a4d2776..e5d296b0 100644 --- a/serde_macros/tests/compile-fail/reject-unknown-attributes.rs +++ b/serde_macros/tests/compile-fail/reject-unknown-attributes.rs @@ -5,24 +5,24 @@ extern crate serde; #[derive(Serialize)] #[serde(abc="xyz")] //~ unknown serde container attribute `abc = "xyz"` -struct Foo { +struct A { x: u32, } #[derive(Deserialize)] #[serde(abc="xyz")] //~ unknown serde container attribute `abc = "xyz"` -struct Foo { +struct B { x: u32, } #[derive(Serialize)] -struct Foo { +struct C { #[serde(abc="xyz")] //~ unknown serde field attribute `abc = "xyz"` x: u32, } #[derive(Deserialize)] -struct Foo { +struct D { #[serde(abc="xyz")] //~ unknown serde field attribute `abc = "xyz"` x: u32, }