serde/test_suite/tests/ui/with-variant/skip_de_whole_variant.rs
2018-12-31 21:38:13 -05:00

11 lines
191 B
Rust

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