serde/test_suite/tests/expand/generic_struct.rs

10 lines
188 B
Rust
Raw Normal View History

2019-11-26 01:57:34 -06:00
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub struct GenericStruct<T> {
x: T,
}
#[derive(Serialize, Deserialize)]
pub struct GenericNewTypeStruct<T>(T);