Skip to content
Myr

Add regression test for issue #2792

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Mingun · committed by Mingun · parent b4ec259 · Browse files · 1 file+16 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+16 added−0 removed

  • tests:+16 added−0 removed

1 file+16 added−0 removed

added:test_suite/tests/regression/issue2792.rs+16 added
1#![allow(dead_code)] // we do not read enum fields2use serde_derive::Deserialize;34#[derive(Deserialize)]5#[serde(deny_unknown_fields)]6pub enum A {7 B {8 c: String,9 },10 D {11 #[serde(flatten)]12 e: E,13 },14}15#[derive(Deserialize)]16pub struct E {}