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

10 lines
152 B
Rust
Raw Normal View History

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