serde/test_suite/tests/ui/duplicate-attribute/two-rename-ser.rs

11 lines
165 B
Rust
Raw Normal View History

2018-12-31 20:36:59 -06:00
use serde_derive::Serialize;
2016-09-28 11:55:54 -05:00
#[derive(Serialize)]
2016-09-28 11:55:54 -05:00
struct S {
#[serde(rename(serialize = "x"))]
#[serde(rename(serialize = "y"))]
2016-09-28 11:55:54 -05:00
x: (),
}
fn main() {}