2016-09-28 09:55:54 -07:00
|
|
|
#[macro_use]
|
|
|
|
extern crate serde_derive;
|
|
|
|
|
|
|
|
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
|
|
|
|
struct S {
|
2016-09-28 12:46:54 -07:00
|
|
|
#[serde(rename(serialize="x", serialize="y"))] //~^^ HELP: duplicate serde attribute `rename`
|
2016-09-28 09:55:54 -07:00
|
|
|
x: (),
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|