serde/test_suite/tests/ui/conflict/flatten-skip-deserializing.rs
2018-12-31 21:38:13 -05:00

15 lines
197 B
Rust

use serde_derive::Deserialize;
#[derive(Deserialize)]
struct Foo {
#[serde(flatten, skip_deserializing)]
other: Other,
}
#[derive(Deserialize)]
struct Other {
x: u32,
}
fn main() {}