mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 01:07:56 +00:00
Fix associated types only working for first generic parameter
Also, removes extraneous `where for`
This commit is contained in:
@@ -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