Skip to content

Commit

Permalink
Add test of const-generic unit struct where-clause edge case
Browse files Browse the repository at this point in the history
Closes #2501.
  • Loading branch information
dtolnay committed Jul 10, 2023
1 parent 28c1002 commit 662fc38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test_suite/tests/test_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}

//////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 662fc38

Please sign in to comment.