serde/test_suite/tests/ui/remote/enum_getter.rs

19 lines
236 B
Rust
Raw Normal View History

2018-12-31 20:36:59 -06:00
use serde_derive::Serialize;
mod remote {
pub enum E {
A { a: u8 },
}
}
#[derive(Serialize)]
#[serde(remote = "remote::E")]
pub enum E {
A {
2018-06-02 23:11:42 -05:00
#[serde(getter = "get_a")]
a: u8,
},
}
fn main() {}