Fix case of skipped variant followed by other variants

This commit is contained in:
David Tolnay
2017-01-12 23:35:39 -08:00
parent 4ef1128546
commit cb5e7c6264
2 changed files with 21 additions and 19 deletions
+3 -3
View File
@@ -42,13 +42,13 @@ struct StructDenyUnknown {
#[derive(PartialEq, Debug, Deserialize)]
enum Enum {
#[allow(dead_code)]
#[serde(skip_deserializing)]
Skipped,
Unit,
Simple(i32),
Seq(i32, i32, i32),
Map { a: i32, b: i32, c: i32 },
#[allow(dead_code)]
#[serde(skip_deserializing)]
Skipped,
}
//////////////////////////////////////////////////////////////////////////