12 lines
165 B
Rust
Raw Normal View History

2016-09-28 09:55:54 -07:00
#[macro_use]
extern crate serde_derive;
#[derive(Serialize)]
2016-09-28 09:55:54 -07:00
struct S {
#[serde(rename(serialize = "x"))]
#[serde(rename = "y")]
2016-09-28 09:55:54 -07:00
x: (),
}
fn main() {}