serde/test_suite/tests/ui/with-variant/skip_de_whole_variant.rs

12 lines
200 B
Rust
Raw Normal View History

#[macro_use]
extern crate serde_derive;
#[derive(Deserialize)]
enum Enum {
#[serde(deserialize_with = "deserialize_some_unit_variant")]
#[serde(skip_deserializing)]
Unit,
}
fn main() {}