Add test of const-generic unit struct where-clause edge case

Closes #2501.
This commit is contained in:
David Tolnay 2023-07-09 18:01:33 -07:00
parent 28c10020b9
commit 662fc3861c
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -760,6 +760,10 @@ fn test_gen() {
#[serde(serialize_with = "vec_first_element")]
vec: Vec<Self>,
}
#[derive(Deserialize)]
#[serde(bound(deserialize = "[&'de str; N]: Copy"))]
struct GenericUnitStruct<const N: usize>;
}
//////////////////////////////////////////////////////////////////////////