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

17 lines
227 B
Rust
Raw Normal View History

2018-12-31 20:36:59 -06:00
use serde_derive::{Serialize, Deserialize};
2017-04-10 14:22:51 -05:00
mod remote {
pub struct S {
pub a: u8,
pub b: u8,
}
}
#[derive(Serialize, Deserialize)]
2017-04-10 14:22:51 -05:00
#[serde(remote = "remote::S")]
struct S {
a: u8,
2017-04-10 14:22:51 -05:00
}
fn main() {}