pub enum Either { Left(L), Right(R), } pub struct Wrap(T); pub fn foo_wrap() -> Either<(), Wrap> { Either::Left(()) }