mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-12 19:01:02 +00:00
@@ -50,6 +50,25 @@ enum SerEnum<'a, B: 'a, C: /* Trait + */ 'a, D> where D: /* Trait + */ 'a {
|
|||||||
e: &'a mut D,
|
e: &'a mut D,
|
||||||
//f: <D as Trait>::Type,
|
//f: <D as Trait>::Type,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Make sure we can support more than one variant.
|
||||||
|
_Unit2,
|
||||||
|
_Seq2(
|
||||||
|
i8,
|
||||||
|
B,
|
||||||
|
&'a C,
|
||||||
|
//C::Type,
|
||||||
|
&'a mut D,
|
||||||
|
//<D as Trait>::Type,
|
||||||
|
),
|
||||||
|
_Map2 {
|
||||||
|
a: i8,
|
||||||
|
b: B,
|
||||||
|
c: &'a C,
|
||||||
|
//d: C::Type,
|
||||||
|
e: &'a mut D,
|
||||||
|
//f: <D as Trait>::Type,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
@@ -72,6 +91,25 @@ enum DeEnum<B, C: /* Trait */, D> /* where D: Trait */ {
|
|||||||
e: D,
|
e: D,
|
||||||
//f: <D as Trait>::Type,
|
//f: <D as Trait>::Type,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Make sure we can support more than one variant.
|
||||||
|
_Unit2,
|
||||||
|
_Seq2(
|
||||||
|
i8,
|
||||||
|
B,
|
||||||
|
C,
|
||||||
|
//C::Type,
|
||||||
|
D,
|
||||||
|
//<D as Trait>::Type,
|
||||||
|
),
|
||||||
|
_Map2 {
|
||||||
|
a: i8,
|
||||||
|
b: B,
|
||||||
|
c: C,
|
||||||
|
//d: C::Type,
|
||||||
|
e: D,
|
||||||
|
//f: <D as Trait>::Type,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user