serde/test_suite/tests/expand/generic_enum.rs

10 lines
168 B
Rust
Raw Normal View History

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