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

16 lines
208 B
Rust
Raw Normal View History

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