1 2 3 4 5 6 7 8 9 10
pub enum Either<L, R> { Left(L), Right(R), } pub struct Wrap<T>(T); pub fn foo_wrap() -> Either<(), Wrap<u8>> { Either::Left(()) }