mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-17 03:21:02 +00:00
Add test of const-generic unit struct where-clause edge case
Closes #2501.
This commit is contained in:
@@ -760,6 +760,10 @@ fn test_gen() {
|
|||||||
#[serde(serialize_with = "vec_first_element")]
|
#[serde(serialize_with = "vec_first_element")]
|
||||||
vec: Vec<Self>,
|
vec: Vec<Self>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Deserialize)]
|
||||||
|
#[serde(bound(deserialize = "[&'de str; N]: Copy"))]
|
||||||
|
struct GenericUnitStruct<const N: usize>;
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user