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, }