Fix compiletest error in newest nightly

This commit is contained in:
David Tolnay 2016-09-28 09:25:19 -07:00
parent 819d47fea2
commit 554b81d636
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

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