mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-30 15:19:50 +00:00
Fix associated types only working for first generic parameter
Also, removes extraneous `where for`
This commit is contained in:
1 parent
def8d6e8af
commit
4415d10c61
2 files changed
+23
-12
No files matched your search
@@ -555,6 +555,14 @@ fn test_gen() {
|
||||
}
|
||||
|
||||
assert::<AssocDerive<NoSerdeImpl>>();
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct AssocDeriveMulti<S, T: AssocSerde> {
|
||||
s: S,
|
||||
assoc: T::Assoc,
|
||||
}
|
||||
|
||||
assert::<AssocDeriveMulti<i32, NoSerdeImpl>>();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user