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

16 lines
200 B
Rust
Raw Normal View History

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