serde/test_suite/tests/ui/remote/enum_getter.rs
2018-12-31 21:38:13 -05:00

19 lines
236 B
Rust

use serde_derive::Serialize;
mod remote {
pub enum E {
A { a: u8 },
}
}
#[derive(Serialize)]
#[serde(remote = "remote::E")]
pub enum E {
A {
#[serde(getter = "get_a")]
a: u8,
},
}
fn main() {}