serde/test_suite/tests/ui/conflict/flatten-skip-deserializing.rs

16 lines
206 B
Rust
Raw Normal View History

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