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

10 lines
168 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub enum GenericEnum<T, U> {
Unit,
NewType(T),
Seq(T, U),
Map { x: T, y: U },
}