double_generic.rs
This file
Path
test_suite/tests/ui/remote/double_generic.rs
17 lines · 273 bytes · Rust
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 3761854 point at it.
Merge pull request #2745 from dtolnay/docsrsDavid Tolnaybefore adoption3761854
lines 1–17why, one step back1use serde_derive::{Deserialize, Serialize};23mod remote {4 pub struct Struct<T, U> {5 pub t: T,6 pub u: U,7 }8}910#[derive(Serialize, Deserialize)]11#[serde(remote = "remote::StructGeneric<u8>")]12struct StructDef<U> {13 t: u8,14 u: U,15}1617fn main() {}