blob: b678cb219cdeb52389f55554e608ada2bba860ae [file] [log] [blame]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
pub enum Either<T, E> {
Left(T),
Right(E),
}
pub mod err {
pub struct Error;
pub struct ErrorWrap<T>(T);
}
pub fn foo_err() -> Either<(), err::Error> {
Either::Left(())
}
pub fn foo_err_wrap() -> Either<(), err::ErrorWrap<u8>> {
Either::Left(())
}