Add ui test of duplicate generics in remote derive

This commit is contained in:
David Tolnay
2022-11-27 17:23:25 -08:00
parent 0daafe423f
commit c4f67e679f
2 changed files with 69 additions and 0 deletions
@@ -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() {}