mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-29 14:59:49 +00:00
Relax impls for [T; 0]
This commit is contained in:
3 files changed
+18
-7
No files matched your search
@@ -295,6 +295,11 @@ fn test_gen() {
|
||||
#[derive(Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
struct UnitDenyUnknown;
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct EmptyArray {
|
||||
empty: [X; 0],
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user