serde/test_suite/tests/expand/generic_enum.rs

10 lines
168 B
Rust
Raw Normal View History

2019-11-25 23:57:34 -08:00
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub enum GenericEnum<T, U> {
Unit,
NewType(T),
Seq(T, U),
Map { x: T, y: U },
}