mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-15 16:41:01 +00:00
Merge branch origin/master into origin/syn
Conflicts:
serde_macros/tests/compile-fail/reject-unknown-attributes.rs
This commit is contained in:
@@ -5,24 +5,24 @@ extern crate serde;
|
|||||||
|
|
||||||
#[derive(Serialize)] //~ unknown serde container attribute `abc`
|
#[derive(Serialize)] //~ unknown serde container attribute `abc`
|
||||||
#[serde(abc="xyz")]
|
#[serde(abc="xyz")]
|
||||||
struct Foo {
|
struct A {
|
||||||
x: u32,
|
x: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)] //~ unknown serde container attribute `abc`
|
#[derive(Deserialize)] //~ unknown serde container attribute `abc`
|
||||||
#[serde(abc="xyz")]
|
#[serde(abc="xyz")]
|
||||||
struct Foo {
|
struct B {
|
||||||
x: u32,
|
x: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize)] //~ unknown serde field attribute `abc`
|
#[derive(Serialize)] //~ unknown serde field attribute `abc`
|
||||||
struct Foo {
|
struct C {
|
||||||
#[serde(abc="xyz")]
|
#[serde(abc="xyz")]
|
||||||
x: u32,
|
x: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)] //~ unknown serde field attribute `abc`
|
#[derive(Deserialize)] //~ unknown serde field attribute `abc`
|
||||||
struct Foo {
|
struct D {
|
||||||
#[serde(abc="xyz")]
|
#[serde(abc="xyz")]
|
||||||
x: u32,
|
x: u32,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user