2018-12-31 21:36:59 -05:00
|
|
|
use serde_derive::Serialize;
|
2017-04-09 11:11:27 -07:00
|
|
|
|
|
|
|
mod remote {
|
|
|
|
pub struct S {
|
|
|
|
a: u8,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-02 22:19:39 -07:00
|
|
|
#[derive(Serialize)]
|
2017-04-09 11:11:27 -07:00
|
|
|
#[serde(remote = "remote::S")]
|
|
|
|
struct S {
|
2018-06-02 21:11:42 -07:00
|
|
|
#[serde(getter = "~~~")]
|
2017-04-09 11:11:27 -07:00
|
|
|
a: u8,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|