Support empty adjacently tagged enum

This commit is contained in:
David Tolnay committed 2018-05-07 21:02:42 -07:00
1 parent 7cd4f49c76
commit 12fe42ed45
2 files changed
+20 -7

No files matched your search

+4
View File
@@ -588,6 +588,10 @@ fn test_gen() {
}
}
}
#[derive(Deserialize)]
#[serde(tag = "t", content = "c")]
enum AdjacentlyTaggedVoid {}
}
//////////////////////////////////////////////////////////////////////////