serde/test_suite/tests/regression/issue2792.rs
2024-08-11 00:05:56 -07:00

19 lines
281 B
Rust

#![allow(dead_code)] // we do not read enum fields
use serde_derive::Deserialize;
#[derive(Deserialize)]
#[serde(deny_unknown_fields)]
pub enum A {
B {
c: String,
},
D {
#[serde(flatten)]
e: E,
},
}
#[derive(Deserialize)]
pub struct E {}