mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 11:28:02 +00:00
Fix for "cannot infer type" from Deserialize derive macro with simple
variants and untagged variants
This commit is contained in:
@@ -2383,7 +2383,7 @@ fn test_partially_untagged_enum_desugared() {
|
||||
#[test]
|
||||
fn test_partially_untagged_simple_enum() {
|
||||
#[derive(Serialize, Deserialize, PartialEq, Debug)]
|
||||
#[serde(tag = "tag")]
|
||||
#[serde(tag = "t")]
|
||||
enum Data {
|
||||
A,
|
||||
#[serde(untagged)]
|
||||
@@ -2391,7 +2391,8 @@ fn test_partially_untagged_simple_enum() {
|
||||
}
|
||||
|
||||
let data = Data::A;
|
||||
assert_tokens(
|
||||
|
||||
assert_de_tokens(
|
||||
&data,
|
||||
&[
|
||||
Token::Map { len: None },
|
||||
|
||||
Reference in New Issue
Block a user