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

10 lines
133 B
Rust

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