serde/test_suite/tests/expand/generic_struct.rs
2019-11-25 23:57:34 -08:00

10 lines
188 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub struct GenericStruct<T> {
x: T,
}
#[derive(Serialize, Deserialize)]
pub struct GenericNewTypeStruct<T>(T);