mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 18:27:54 +00:00
Add ui test of duplicate generics in remote derive
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
|
||||
mod remote {
|
||||
pub struct Struct<T, U> {
|
||||
pub t: T,
|
||||
pub u: U,
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
#[serde(remote = "remote::StructGeneric<u8>")]
|
||||
struct StructDef<U> {
|
||||
t: u8,
|
||||
u: U,
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user