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

17 lines
227 B
Rust

use serde_derive::{Serialize, Deserialize};
mod remote {
pub struct S {
pub a: u8,
pub b: u8,
}
}
#[derive(Serialize, Deserialize)]
#[serde(remote = "remote::S")]
struct S {
a: u8,
}
fn main() {}