serde/test_suite/tests/ui/duplicate-attribute/rename-ser-rename.rs
2018-12-31 21:38:13 -05:00

11 lines
154 B
Rust

use serde_derive::Serialize;
#[derive(Serialize)]
struct S {
#[serde(rename(serialize = "x"))]
#[serde(rename = "y")]
x: (),
}
fn main() {}