Special case remote = "Self"

This commit is contained in:
David Tolnay
2018-03-27 10:56:05 +02:00
parent 23e2e92237
commit 42430902e2
2 changed files with 20 additions and 9 deletions
+4
View File
@@ -385,6 +385,10 @@ fn test_gen() {
s: vis::S,
}
#[derive(Serialize, Deserialize)]
#[serde(remote = "Self")]
struct RemoteSelf;
#[derive(Serialize, Deserialize)]
enum ExternallyTaggedVariantWith {
#[allow(dead_code)]