Support empty adjacently tagged enum

This commit is contained in:
David Tolnay
2018-05-07 21:02:42 -07:00
parent 7cd4f49c76
commit 12fe42ed45
2 changed files with 20 additions and 7 deletions
+4
View File
@@ -588,6 +588,10 @@ fn test_gen() {
}
}
}
#[derive(Deserialize)]
#[serde(tag = "t", content = "c")]
enum AdjacentlyTaggedVoid {}
}
//////////////////////////////////////////////////////////////////////////